summaryrefslogtreecommitdiff
path: root/src/iter.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-01-21 21:28:27 -0500
committerAdrian Thurston <thurston@complang.org>2014-01-21 21:28:27 -0500
commitfee5f32f5818a2fd075aa6035de2fa980d2b8a58 (patch)
tree3bd3d66fb840361879f5ff20d2404627780341cd /src/iter.c
parent9ea5133db407277e819a097727c676ef77c5c558 (diff)
downloadcolm-fee5f32f5818a2fd075aa6035de2fa980d2b8a58.tar.gz
the contiguous instruction also pushes a null value
An initial push prevents a push-pop-push from clearing the contiguous block. This can happen easily when evaluating args (quals, expresssions, etc).
Diffstat (limited to 'src/iter.c')
-rw-r--r--src/iter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/iter.c b/src/iter.c
index 3d38fa3a..9e60a2df 100644
--- a/src/iter.c
+++ b/src/iter.c
@@ -165,6 +165,7 @@ void userIterDestroy2( Program *prg, Tree ***psp, UserIter *uiter )
vm_popn( uiter->yieldSize );
vm_popn( sizeof(UserIter) / sizeof(Word) );
vm_popn( argSize );
+ vm_pop();
uiter->type = 0;