aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@google.com>2011-11-21 14:43:19 -0800
committerKent Overstreet <koverstreet@google.com>2011-11-21 14:58:53 -0800
commit35710b9dde24f5d4b1dbf378d8fc743d70b7a425 (patch)
treee85c5e089b44723b5ed90d08bb58276bb5407f9c
parentd1bc71ca43adea3d6b21981958fd700303c77199 (diff)
downloadbcache-tools-35710b9dde24f5d4b1dbf378d8fc743d70b7a425.tar.gz
Fix more warnings during 32bit compilation
"bcache.c:120: warning: integer constant is too large for 'long' type" "bcache.c:128: warning: integer constant is too large for 'long' type" Signed-off-by: Gwendal Grignou <gwendal@google.com>
-rw-r--r--bcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bcache.c b/bcache.c
index e591e91c..8f37445d 100644
--- a/bcache.c
+++ b/bcache.c
@@ -117,7 +117,7 @@ static const uint64_t crc_table[256] = {
inline uint64_t crc64(const void *_data, size_t len)
{
- uint64_t crc = 0xffffffffffffffff;
+ uint64_t crc = 0xFFFFFFFFFFFFFFFFULL;
const unsigned char *data = _data;
while (len--) {
@@ -125,5 +125,5 @@ inline uint64_t crc64(const void *_data, size_t len)
crc = crc_table[i] ^ (crc << 8);
}
- return crc ^ 0xffffffffffffffff;
+ return crc ^ 0xFFFFFFFFFFFFFFFFULL;
}