diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2021-03-01 16:38:33 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2021-03-01 20:59:52 +0100 |
commit | ce7e78a2c09eadcbc180eb9678ed34c232a146b7 (patch) | |
tree | e853d225ae0701e72ad55fd58e53aa3b7feb628c /lisp/calc/calc-ext.el | |
parent | e6a4ef48fd0b0ea4386069eb47d148c930856ce6 (diff) | |
download | emacs-ce7e78a2c09eadcbc180eb9678ed34c232a146b7.tar.gz emacs-ce7e78a2c09eadcbc180eb9678ed34c232a146b7.tar.bz2 emacs-ce7e78a2c09eadcbc180eb9678ed34c232a146b7.zip |
* lisp/calc/calc-ext.el (math-equal-int): Work for bignums.
Diffstat (limited to 'lisp/calc/calc-ext.el')
-rw-r--r-- | lisp/calc/calc-ext.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el index f4ddb840b50..24781ed6c86 100644 --- a/lisp/calc/calc-ext.el +++ b/lisp/calc/calc-ext.el @@ -2565,9 +2565,9 @@ If X is not an error form, return 1." ;;; True if A is numerically equal to the integer B. [P N S] [Public] ;;; B must not be a multiple of 10. (defun math-equal-int (a b) - (or (eq a b) + (or (eql a b) (and (eq (car-safe a) 'float) - (eq (nth 1 a) b) + (eql (nth 1 a) b) (= (nth 2 a) 0)))) |