projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ae4011
)
Fix warning on platform with int wide 16 bits.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Nov 2008 15:01:24 +0000
(15:01 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Nov 2008 15:01:24 +0000
(15:01 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1921
38d2e660
-2303-0410-9eaa-
f027e97ec537
bertos/fs/battfs.h
patch
|
blob
|
history
diff --git
a/bertos/fs/battfs.h
b/bertos/fs/battfs.h
index bcd5c556229b0a336529c0e1e731681670fa66ed..d621c795f5ad6983c5324b97450f186565442f32 100644
(file)
--- 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.