* lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode): Fix overflow
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 17 Sep 2011 09:29:01 +0000 (11:29 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 17 Sep 2011 09:29:01 +0000 (11:29 +0200)
check.  (Bug#4251)

lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el

index 6fa59a3..5b4d2e8 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-17  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * emacs-lisp/bytecomp.el (byte-compile-lapcode): Fix overflow
+       check.  (Bug#4251)
+
 2011-09-17  Juri Linkov  <juri@jurta.org>
 
        * window.el (window-safe-min-height, window-safe-min-width):
index 127f93c..fae402d 100644 (file)
@@ -834,7 +834,7 @@ CONST2 may be evaulated multiple times."
       (setcar (cdr bytes-tail) (logand pc 255))
       (setcar bytes-tail (lsh pc -8))
       ;; FIXME: Replace this by some workaround.
-      (if (> (car bytes) 255) (error "Bytecode overflow")))
+      (if (> (car bytes-tail) 255) (error "Bytecode overflow")))
 
     (apply 'unibyte-string (nreverse bytes))))