Mercurial > hg > xemacs-beta
diff src/dumper.c @ 5934:e2fae7783046 cygwin
lots of use of EMACS_INT, a few others, to eliminate all pointer truncation warnings
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 12 Dec 2015 19:08:46 +0000 |
parents | 93a18dbcfd8c |
children | 574f0cded429 |
line wrap: on
line diff
--- a/src/dumper.c Thu Dec 10 17:55:59 2015 +0000 +++ b/src/dumper.c Sat Dec 12 19:08:46 2015 +0000 @@ -472,9 +472,9 @@ pdump_make_hash (const void *obj) { #ifdef NEW_GC - return ((unsigned long)(obj) * PDUMP_HASH_MULTIPLIER) % PDUMP_HASHSIZE; + return ((uintptr_t)(obj) * PDUMP_HASH_MULTIPLIER) % PDUMP_HASHSIZE; #else /* not NEW_GC */ - return ((unsigned long)(obj)>>3) % PDUMP_HASHSIZE; + return ((uintptr_t)(obj)>>3) % PDUMP_HASHSIZE; #endif /* not NEW_GC */ }