mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-22 00:00:03 +03:00
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:
parent
d1bc71ca43
commit
35710b9dde
4
bcache.c
4
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user