summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1997-12-04 05:58:56 +0000
committerKarl Heuer <kwzh@gnu.org>1997-12-04 05:58:56 +0000
commit98a602e3583233a6692c8dc16dfbf9d3bb90b2c0 (patch)
treee51ecff839dd66d117750c901ca331e79fb3e477 /lisp/emacs-lisp
parent50bec09179d68f86bbef0e637bd8c1dabf8ebe23 (diff)
downloademacs-98a602e3583233a6692c8dc16dfbf9d3bb90b2c0.tar.gz
emacs-98a602e3583233a6692c8dc16dfbf9d3bb90b2c0.tar.bz2
emacs-98a602e3583233a6692c8dc16dfbf9d3bb90b2c0.zip
(byte-optimize-lapcode): Correctly
distinguish byte-constant from operations on variables.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/byte-opt.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index 56dcc9e2427..be958e53abb 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -1826,7 +1826,7 @@ may generate incorrect code.")
(setq lap0 (car rest)
lap1 (nth 1 rest))
(if (memq (car lap0) byte-constref-ops)
- (if (eq (cdr lap0) 'byte-constant)
+ (if (not (eq (car lap0) 'byte-constant))
(or (memq (cdr lap0) byte-compile-variables)
(setq byte-compile-variables (cons (cdr lap0)
byte-compile-variables)))