commit | e43606c2b13ad7fc1af2bbe4a61cf8480ee3a532 | [log] [tgz] |
---|---|---|
author | Bruce Cran <bruce@cran.org.uk> | Mon Feb 20 09:34:24 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Feb 20 09:34:24 2012 +0100 |
tree | 30379c9734a8f1062080357be7afad35f414e8ec | |
parent | 78b269e358bb4be773879db797a41ec981e1d951 [diff] [blame] |
Fix assumption that pointers fits in a 'long' Windows uses LLP64 model so [u]intptr_t is more correct. Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/hash.h b/hash.h index 0c3cdda..4b8c6bf 100644 --- a/hash.h +++ b/hash.h
@@ -58,7 +58,7 @@ 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); } /*