summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-bin.el
diff options
context:
space:
mode:
authorJay Belanger <jay.p.belanger@gmail.com>2005-05-02 19:41:27 +0000
committerJay Belanger <jay.p.belanger@gmail.com>2005-05-02 19:41:27 +0000
commit14e39ad48dd871738ea75ecbecc34636054a9f9d (patch)
tree09d8d0ece27bd8ebe33af40b7512fdc5791f6c61 /lisp/calc/calc-bin.el
parent36692c4a90325481b9236a23efffd5ddca2d8319 (diff)
downloademacs-14e39ad48dd871738ea75ecbecc34636054a9f9d.tar.gz
(calc-word-size): Replace string-to-int by string-to-number.
Diffstat (limited to 'lisp/calc/calc-bin.el')
-rw-r--r--lisp/calc/calc-bin.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/calc/calc-bin.el b/lisp/calc/calc-bin.el
index e960220c09b..445f9d28531 100644
--- a/lisp/calc/calc-bin.el
+++ b/lisp/calc/calc-bin.el
@@ -1,6 +1,6 @@
;;; calc-bin.el --- binary functions for Calc
-;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
+;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2005 Free Software Foundation, Inc.
;; Author: David Gillespie <daveg@synaptics.com>
;; Maintainer: Jay Belanger <belanger@truman.edu>
@@ -135,7 +135,7 @@
(if (equal n "")
calc-word-size
(if (string-match "\\`[-+]?[0-9]+\\'" n)
- (string-to-int n)
+ (string-to-number n)
(error "Expected an integer")))
(prefix-numeric-value n)))
(or (= n calc-word-size)