diff options
author | Richard Stallman <rms@gnu.org> | 2025-02-17 16:56:22 -0500 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 2025-02-17 16:56:22 -0500 |
commit | abd861ca2694898b347b94251710da38c687dd68 (patch) | |
tree | 1e8d0a2680b7ce953d10fb3c91bca40658694e95 /lisp/emacs-lisp/cl-extra.el | |
parent | f3ef16f86ffbb0ab5b76fa11e85eda5b1eff4b4b (diff) | |
parent | 8a7c1a31ac0a61384661878e9f7f7e77ada34ade (diff) | |
download | emacs-abd861ca2694898b347b94251710da38c687dd68.tar.gz emacs-abd861ca2694898b347b94251710da38c687dd68.tar.bz2 emacs-abd861ca2694898b347b94251710da38c687dd68.zip |
merging with my changes in cond-star.el.
Diffstat (limited to 'lisp/emacs-lisp/cl-extra.el')
-rw-r--r-- | lisp/emacs-lisp/cl-extra.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el index 09470457d93..ab06682cf93 100644 --- a/lisp/emacs-lisp/cl-extra.el +++ b/lisp/emacs-lisp/cl-extra.el @@ -392,7 +392,7 @@ With two arguments, return rounding and remainder of their quotient." (res (cl-floor (+ x hy) y))) (if (and (= (car (cdr res)) 0) (= (+ hy hy) y) - (/= (% (car res) 2) 0)) + (oddp (car res))) (list (1- (car res)) hy) (list (car res) (- (car (cdr res)) hy)))) (let ((q (round (/ x y)))) |