]> git.eshelyaron.com Git - emacs.git/commit
Don’t needlessly convert to ‘unsigned’ in pdumper
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Aug 2020 09:16:54 +0000 (02:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Aug 2020 09:27:44 +0000 (02:27 -0700)
commiteeaef1aec6d881f206a37c6e476fd94a5c289fc3
tree3923651d77b8953d1949292ec2dec92d52e1f686
parent5bd7b3c7f7af97f62bbc4f4ba9040e533e20e841
Don’t needlessly convert to ‘unsigned’ in pdumper

* src/pdumper.c (PRIdDUMP_OFF): New macro.
(EMACS_INT_XDIGITS): New constant.
(struct dump_context): Use dump_off for relocation counts.
All uses changed.
(dump_queue_enqueue, dump_queue_dequeue, Fdump_emacs_portable):
Don’t assume counts fit in ‘unsigned’ or ‘unsigned long’.
Use EMACS_INT_XDIGITS instead of assuming it’s 16.
src/pdumper.c