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