diff options
author | Adrian Thurston <thurston@complang.org> | 2014-01-21 21:28:27 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2014-01-21 21:28:27 -0500 |
commit | fee5f32f5818a2fd075aa6035de2fa980d2b8a58 (patch) | |
tree | 3bd3d66fb840361879f5ff20d2404627780341cd /src/iter.c | |
parent | 9ea5133db407277e819a097727c676ef77c5c558 (diff) | |
download | colm-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |