]> git.eshelyaron.com Git - emacs.git/commit
Prefer signed when testing for signed overflow
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Aug 2019 23:42:38 +0000 (16:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Aug 2019 00:10:48 +0000 (17:10 -0700)
commit57fc1a5f7c49fbe7288de6ad567c934db2ceaf96
tree3bcf2eac0a4d966dbad0729caf57c22da7fa30c0
parentf01365f62c921407acead13bb350816a313a8c42
Prefer signed when testing for signed overflow

* src/alloc.c (free_cons):
* src/casefiddle.c (do_casify_multibyte_string):
* src/editfns.c (styled_format):
* src/image.c (png_load_body):
Use signed arguments to INT_MULTIPLY_WRAPV etc.  This doesn’t fix
any bugs, but GCC emits better code when all args are signed.
Also, this removes the need for an if in free_cons (Bug#37006).
src/alloc.c
src/casefiddle.c
src/editfns.c
src/image.c