changeset 94388:7d261daf53c6

(calculator-expt): Replace cl function `oddp'.
author Glenn Morris <rgm@gnu.org>
date Sun, 27 Apr 2008 01:20:10 +0000
parents 5d266b6d0d3d
children c8cc1acc029f
files lisp/calculator.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calculator.el	Sun Apr 27 01:17:03 2008 +0000
+++ b/lisp/calculator.el	Sun Apr 27 01:20:10 2008 +0000
@@ -5,7 +5,7 @@
 
 ;; Author: Eli Barzilay <eli@barzilay.org>
 ;; Keywords: tools, convenience
-;; Time-stamp: <2007-08-31 03:00:11 ttn>
+;; Time-stamp: <Sat 26-Apr-2008 18:18:44 gm on grasmoor>
 
 ;; This file is part of GNU Emacs.
 
@@ -1806,7 +1806,7 @@
       ;; The range errors come from large integer y.
       ((< y 0.0)
        0.0)
-      ((oddp (truncate y))
+      ((not (zerop (% (truncate y) 2)))
        ;; If y is odd
        -1.0e+INF)
       (t