summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2008-11-12 04:55:08 +0000
committerAdrian Thurston <thurston@complang.org>2008-11-12 04:55:08 +0000
commita1d7c7a3417a3f432c4a99cbd7465aa4a74d4b7a (patch)
tree697aa28f0938202f6034c422f226ed48eb620a22
parentf2ed2c24ae5a098755dfcad3610cd0add92e2127 (diff)
downloadcolm-a1d7c7a3417a3f432c4a99cbd7465aa4a74d4b7a.tar.gz
Don't need to clear the entire vm_stack.
-rw-r--r--colm/bytecode.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/colm/bytecode.cpp b/colm/bytecode.cpp
index 4cdaae80..76ba7a0a 100644
--- a/colm/bytecode.cpp
+++ b/colm/bytecode.cpp
@@ -337,8 +337,7 @@ void Program::clear( Tree **vm_stack, Tree **sp )
mapElPool.clear();
//reverseCode.empty();
-
- memset( vm_stack, 0, sizeof(Tree*) * VM_STACK_SIZE);
+ //memset( vm_stack, 0, sizeof(Tree*) * VM_STACK_SIZE);
}
void Program::allocGlobal()