]> git.eshelyaron.com Git - emacs.git/commit
Calc: don't treat nil as an integer (bug#40155)
authorMattias Engdegård <mattiase@acm.org>
Fri, 27 Mar 2020 17:11:18 +0000 (18:11 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 27 Mar 2020 17:11:18 +0000 (18:11 +0100)
commitc2b8ce4439935e2e158d4357d234135a251c5767
tree982b300e317a12e9d8952e5317dcf755890f7314
parente1f0e0892232221e6333b24788b97942c83ec738
Calc: don't treat nil as an integer (bug#40155)

Make Math-num-integerp return false for nil, following Math-integerp
which was changed in the bignum reform.  This fixes a crash in
calc-graph-fast.

Reported by Narendra Joshi.

* lisp/calc/calc-macs.el (Math-num-integerp): Not true for nil.
* test/lisp/calc/calc-tests.el (calc-Math-integerp): New tests.
lisp/calc/calc-macs.el
test/lisp/calc/calc-tests.el