]> 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>
Mon, 23 Sep 2019 13:06:53 +0000 (15:06 +0200)
commitbd0f173199c112b2b146e727f80e973e7fc12143
tree36e80c5d5b1bba4ee98e6a5ed085fdbe7de3bfa1
parent73e1727c405214086bb3a0647c91855e1b0853c2
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.
Backport from master.
lisp/calc/calc-alg.el
test/lisp/calc/calc-tests.el