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>
This commit is contained in:
Gwendal Grignou 2011-11-21 14:43:19 -08:00 committed by Kent Overstreet
parent d1bc71ca43
commit 35710b9dde

View File

@ -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;
}