summaryrefslogtreecommitdiffstats
path: root/opcode_list.h
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-01-03 12:51:33 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2013-01-03 12:51:33 +0000
commitc013b557a2bc72dff8795d89d4529e17946a5f3a (patch)
tree8237c4c2fbf70115830b6598fdcca69753d26fb1 /opcode_list.h
parentfb84541e1124565ee7af32cd842771cf81326dc7 (diff)
Change APPEND opcode to directly modify a variable.
Avoids a big O(n^2) loop in constructing arrays. Fixes #61.
Diffstat (limited to 'opcode_list.h')
-rw-r--r--opcode_list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcode_list.h b/opcode_list.h
index 0185b5a6..f384d715 100644
--- a/opcode_list.h
+++ b/opcode_list.h
@@ -12,7 +12,7 @@ OP(FORK, BRANCH, 0, 0)
OP(JUMP, BRANCH, 0, 0)
OP(JUMP_F,BRANCH, 1, 0)
OP(BACKTRACK, NONE, 0, 0)
-OP(APPEND, NONE, 2, 1)
+OP(APPEND, VARIABLE,1, 0)
OP(INSERT, NONE, 4, 2)
OP(GETPATH, NONE, 2, 1)