]> git.eshelyaron.com Git - emacs.git/commit
Fix trig simplification crash (bug#33052)
authorMattias Engdegård <mattiase@acm.org>
Wed, 10 Jul 2019 17:24:58 +0000 (19:24 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 10 Jul 2019 17:28:35 +0000 (19:28 +0200)
commit83ed722c8d9d4d9d4143062584b89f79f3b8104a
treef3198328e2c76888dff61833ba1ebad8440a9ce5
parentff5dd4ed76c9854ad8a566cea8ddcdf5c8ffabd6
Fix trig simplification crash (bug#33052)

* lisp/calc/calc-alg.el (calcFunc-sec, calcFunc-csc, calcFunc-cot):
Check that `math-known-sin' and `math-known-tan' succeeded before
using their value in arithmetic.
* test/lisp/calc/calc-tests.el (calc-test-trig): Add regression tests.
lisp/calc/calc-alg.el
test/lisp/calc/calc-tests.el