X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=hash.h;h=4b8c6bf0bcc49bd9b1f1b56c38c6e6b6243df22e;hp=0c3cdda77be642842337f6fe949da7c24581e661;hb=8200b8c711cfabca65ce32e84f5985a2307a1ea9;hpb=fddc6604f91ebf76d9090741f9d4f5a4d33be0c6 diff --git a/hash.h b/hash.h index 0c3cdda7..4b8c6bf0 100644 --- a/hash.h +++ b/hash.h @@ -58,7 +58,7 @@ static inline unsigned long hash_long(unsigned long val, unsigned int bits) static inline unsigned long hash_ptr(void *ptr, unsigned int bits) { - return hash_long((unsigned long)ptr, bits); + return hash_long((uintptr_t)ptr, bits); } /*