X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=hash.h;fp=hash.h;h=4b8c6bf0bcc49bd9b1f1b56c38c6e6b6243df22e;hp=0c3cdda77be642842337f6fe949da7c24581e661;hb=e43606c2b13ad7fc1af2bbe4a61cf8480ee3a532;hpb=78b269e358bb4be773879db797a41ec981e1d951 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); } /*