From: batt Date: Tue, 11 Nov 2008 15:01:24 +0000 (+0000) Subject: Fix warning on platform with int wide 16 bits. X-Git-Tag: 2.0.0~13 X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=29e7e26cf5643df1e8fac632a77ad435675ecafa Fix warning on platform with int wide 16 bits. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1921 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/fs/battfs.h b/bertos/fs/battfs.h index bcd5c556..d621c795 100644 --- a/bertos/fs/battfs.h +++ b/bertos/fs/battfs.h @@ -108,7 +108,7 @@ struct BattFsSuper; /** * Sentinel used to keep trace of unset pages in disk->page_array. */ -#define PAGE_UNSET_SENTINEL ((1 << (CPU_BITS_PER_CHAR * sizeof(pgcnt_t))) - 1) +#define PAGE_UNSET_SENTINEL ((pgcnt_t)((1L << (CPU_BITS_PER_CHAR * sizeof(pgcnt_t))) - 1)) /** * Type interface for disk page read function.