fix decompiler's listing of captured top- and module-level variables

original commit: db75dddf87
This commit is contained in:
Matthew Flatt 2011-05-08 16:57:56 -06:00
parent 87373a2e0c
commit 13e715ef44

View File

@ -328,7 +328,8 @@
(list
(for/list ([pos (in-set tl-map)])
(list-ref/protect (glob-desc-vars globs)
(if (pos . < . (glob-desc-num-tls globs))
(if (or (pos . < . (glob-desc-num-tls globs))
(zero? (glob-desc-num-stxs globs)))
pos
(+ pos (glob-desc-num-stxs globs) 1))
'lam)))))))