Mercurial > hg > xemacs-beta
diff src/profile.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 | 3192994c49ca |
children |
line wrap: on
line diff
--- a/src/profile.c Thu Dec 10 17:55:59 2015 +0000 +++ b/src/profile.c Sat Dec 12 19:08:46 2015 +0000 @@ -311,13 +311,13 @@ profiling_lock = 1; { - long count; + EMACS_INT count; const void *vval; if (gethash (STORE_LISP_IN_VOID (fun), big_profile_table, &vval)) - count = (long) vval; + count = (EMACS_INT) vval; else - count = 0; + count = (EMACS_INT)0; count++; vval = (const void *) count; puthash (STORE_LISP_IN_VOID (fun), (void *) vval, big_profile_table);