Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
5933:c1e8f3294298 | 5934:e2fae7783046 |
---|---|
470 #endif /* not NEW_GC */ | 470 #endif /* not NEW_GC */ |
471 static int | 471 static int |
472 pdump_make_hash (const void *obj) | 472 pdump_make_hash (const void *obj) |
473 { | 473 { |
474 #ifdef NEW_GC | 474 #ifdef NEW_GC |
475 return ((unsigned long)(obj) * PDUMP_HASH_MULTIPLIER) % PDUMP_HASHSIZE; | 475 return ((uintptr_t)(obj) * PDUMP_HASH_MULTIPLIER) % PDUMP_HASHSIZE; |
476 #else /* not NEW_GC */ | 476 #else /* not NEW_GC */ |
477 return ((unsigned long)(obj)>>3) % PDUMP_HASHSIZE; | 477 return ((uintptr_t)(obj)>>3) % PDUMP_HASHSIZE; |
478 #endif /* not NEW_GC */ | 478 #endif /* not NEW_GC */ |
479 } | 479 } |
480 | 480 |
481 /* Return the entry for an already-registered memory block at OBJ, | 481 /* Return the entry for an already-registered memory block at OBJ, |
482 or NULL if none. */ | 482 or NULL if none. */ |