changeset 68895:ab08676bc819

(math-check-known-scalarp): Make sure expression is a symbol before checking that it is bound.
author Jay Belanger <jay.p.belanger@gmail.com>
date Tue, 14 Feb 2006 21:38:57 +0000
parents 49dd8a0066cc
children da69cee7c84c
files lisp/calc/calc-arith.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc-arith.el	Tue Feb 14 20:58:33 2006 +0000
+++ b/lisp/calc/calc-arith.el	Tue Feb 14 21:38:57 2006 +0000
@@ -334,6 +334,7 @@
             ((memq 'scalar (nth 1 decl))
              t)
             ((and (eq (car a) 'var)
+                  (symbolp (nth 2 a))
                   (boundp (nth 2 a))
                   (setq val (symbol-value (nth 2 a))))
              (math-check-known-scalarp val))