(and the bigger mystery is why this didn't signal
an error when I ran the tests)
This commit is contained in:
Robby Findler 2013-03-09 19:00:53 -06:00
parent e0aef0a575
commit da7a525452

View File

@ -41,7 +41,7 @@ that the test cases have to be set up somewhat carefully.
(heap-set! (+ 1 heap-ptr) code)
(for ([v (in-list vs)]
[i (in-naturals 1)])
(heap-set! (+ 1 i heap-ptr) (heap-ref v)))
(heap-set! (+ 1 i heap-ptr) (read-root v)))
(set! heap-ptr (+ len 2 heap-ptr))
;; return the location of this flat data
(- heap-ptr len 2))