changeset 97281:6d249948ce31

(math-read-number): Handle C-like languages properly.
author Jay Belanger <jay.p.belanger@gmail.com>
date Tue, 05 Aug 2008 03:42:31 +0000
parents ab31e89ca779
children af7626e39da6
files lisp/calc/calc.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc.el	Tue Aug 05 03:38:24 2008 +0000
+++ b/lisp/calc/calc.el	Tue Aug 05 03:42:31 2008 +0000
@@ -3463,7 +3463,7 @@
     ;; Integers (most common case)
     ((string-match "\\` *\\([0-9]+\\) *\\'" s)
      (let ((digs (math-match-substring s 1)))
-       (if (and (eq calc-language 'c)
+       (if (and (memq calc-language calc-lang-c-type-hex)
 		(> (length digs) 1)
 		(eq (aref digs 0) ?0)
                 (null decimal))