[armedbear-cvs] r12639 - trunk/abcl/src/org/armedbear/lisp

Erik Huelsmann ehuelsmann at common-lisp.net
Thu Apr 29 22:40:25 UTC 2010


Author: ehuelsmann
Date: Thu Apr 29 18:40:22 2010
New Revision: 12639

Log:
Fix #89: Stack inconsistency error when discarding READ-LINE return value.

Modified:
   trunk/abcl/src/org/armedbear/lisp/compiler-pass2.lisp

Modified: trunk/abcl/src/org/armedbear/lisp/compiler-pass2.lisp
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/compiler-pass2.lisp	(original)
+++ trunk/abcl/src/org/armedbear/lisp/compiler-pass2.lisp	Thu Apr 29 18:40:22 2010
@@ -6109,8 +6109,7 @@
                 (emit-push-nil)
                 (emit-invokevirtual +lisp-stream-class+ "readLine"
                                     (list "Z" +lisp-object+) +lisp-object+)
-                (when target
-                  (emit-move-from-stack target)))
+                (emit-move-from-stack target))
                (t
                 (compile-function-call form target representation)))))
       (2
@@ -6125,8 +6124,7 @@
                 (emit-push-nil)
                 (emit-invokevirtual +lisp-stream-class+ "readLine"
                                     (list "Z" +lisp-object+) +lisp-object+)
-                (when target
-                  (emit-move-from-stack target))
+                (emit-move-from-stack target)
                 )
                (t
                 (compile-function-call form target representation)))))




More information about the armedbear-cvs mailing list