aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2019-11-05 13:43:44 -0800
committerPaul Eggert2019-11-05 13:44:02 -0800
commite5f10c6755f3e1670e4dc59842be72cdf62d3f91 (patch)
treeb755014b028c5497778d671c86019e574004384e /lisp
parentedec35aa9472dca3a80966c62131f00e5288ee49 (diff)
downloademacs-e5f10c6755f3e1670e4dc59842be72cdf62d3f91.tar.gz
emacs-e5f10c6755f3e1670e4dc59842be72cdf62d3f91.zip
Pacify byte-compiler in calculator.el
* lisp/calculator.el (calculator-expt): Open-code cl-evenp to pacify warning “the function ‘cl-evenp’ might not be defined”. Problem reported by Juanma Barranquero in: https://lists.gnu.org/r/emacs-devel/2019-11/msg00118.html
Diffstat (limited to 'lisp')
-rw-r--r--lisp/calculator.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/calculator.el b/lisp/calculator.el
index fab365d5f28..6c07ee2225d 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -1620,7 +1620,9 @@ To use this, apply a binary operator (evaluate it), then call this."
1620 (condition-case nil 1620 (condition-case nil
1621 (expt x y) 1621 (expt x y)
1622 (overflow-error 1622 (overflow-error
1623 (if (or (natnump x) (cl-evenp y)) 1623 ;; X and Y must be integers, as expt silently returns floating-point
1624 ;; infinity on floating-point overflow.
1625 (if (or (natnump x) (zerop (logand x 1)))
1624 1.0e+INF 1626 1.0e+INF
1625 -1.0e+INF)))) 1627 -1.0e+INF))))
1626 1628