]> git.eshelyaron.com Git - emacs.git/commit
Remove unneeded overflow check in integer division
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Nov 2019 06:55:23 +0000 (22:55 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Nov 2019 06:55:51 +0000 (22:55 -0800)
commit6039acb86113e21409dafe5ebf75d04fbe4577f6
tree3251440b7a22b99506c25a6dde248e0245ca90a0
parent0661a39d1b501a41e439df8c73f7b7f3bf3e3761
Remove unneeded overflow check in integer division

* src/data.c (arith_driver): Remove unnecessary runtime test,
since integer overflow is impossible on division of fixnums,
given that the worst case is MOST_NEGATIVE_FIXNUM / -1 which is
representable as an EMACS_INT (albeit not as a fixnum).
src/data.c