Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
5933:c1e8f3294298 | 5934:e2fae7783046 |
---|---|
309 than that anyways, since we'll longjmp back to the last | 309 than that anyways, since we'll longjmp back to the last |
310 condition case. */ | 310 condition case. */ |
311 profiling_lock = 1; | 311 profiling_lock = 1; |
312 | 312 |
313 { | 313 { |
314 long count; | 314 EMACS_INT count; |
315 const void *vval; | 315 const void *vval; |
316 | 316 |
317 if (gethash (STORE_LISP_IN_VOID (fun), big_profile_table, &vval)) | 317 if (gethash (STORE_LISP_IN_VOID (fun), big_profile_table, &vval)) |
318 count = (long) vval; | 318 count = (EMACS_INT) vval; |
319 else | 319 else |
320 count = 0; | 320 count = (EMACS_INT)0; |
321 count++; | 321 count++; |
322 vval = (const void *) count; | 322 vval = (const void *) count; |
323 puthash (STORE_LISP_IN_VOID (fun), (void *) vval, big_profile_table); | 323 puthash (STORE_LISP_IN_VOID (fun), (void *) vval, big_profile_table); |
324 } | 324 } |
325 | 325 |