From da3f055ee291eaceeb0b0d8155495ee8c7c5e6f0 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Fri, 14 Dec 2018 16:52:11 -0800 Subject: [PATCH] finesse the lazy --- xenomorph/xenomorph/lazy-array.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xenomorph/xenomorph/lazy-array.rkt b/xenomorph/xenomorph/lazy-array.rkt index 622f2370..0e4f6d7f 100644 --- a/xenomorph/xenomorph/lazy-array.rkt +++ b/xenomorph/xenomorph/lazy-array.rkt @@ -26,7 +26,7 @@ https://github.com/mbutterick/restructure/blob/master/src/LazyArray.coffee (pos port (+ starting-pos (* (size type #f #:parent parent) index))) ;; use explicit `port` arg below because this evaluation is delayed (begin0 - (post-decode xla (xdecode type port #:parent parent)) + (post-decode xla (decode type port)) (pos port orig-pos))) (pos port (+ (pos port) (* decoded-len (size (xarray-base-type xla) #f #:parent parent))))))))