Attempt to fix an undefined variable reference in svm disassembler.
authorTaylor R Campbell <campbell@mumble.net>
Sun, 23 Feb 2014 21:19:03 +0000 (21:19 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Sun, 23 Feb 2014 21:19:06 +0000 (21:19 +0000)
Guessing here what the right way is; I don't know this code well
enough to say for sure.

src/compiler/machines/svm/disassembler.scm

index 6547ec27bfc3492a1612501d1b38e64dd8d67394..ad995cfcf0afd21f58c35d96265fca346dcbe98f 100644 (file)
@@ -245,7 +245,8 @@ USA.
   (cond ((lambda? constant)
         (let ((expression (lambda-body constant)))
           (if (and (compiled-code-address? expression)
-                   (eq? (compiled-code-address->block expression) block))
+                   (eq? (compiled-code-address->block expression)
+                        (cursor-block cursor)))
               (begin
                 (write-string "  (")
                 (let ((offset (compiled-code-address->offset expression)))