diff options
author | Gwendal Grignou <gwendal@google.com> | 2011-11-21 14:43:19 -0800 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2011-11-21 14:58:53 -0800 |
commit | 35710b9dde24f5d4b1dbf378d8fc743d70b7a425 (patch) | |
tree | e85c5e089b44723b5ed90d08bb58276bb5407f9c | |
parent | d1bc71ca43adea3d6b21981958fd700303c77199 (diff) | |
download | bcache-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |