summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-05-13 23:14:06 +0000
committerAdrian Thurston <thurston@complang.org>2013-05-13 23:14:06 +0000
commit0381aa5bd1808f9c5950adccf96aa78c528874d3 (patch)
tree065812e39563121a62fe2d27a01cf3fa8a26f00b
parent884f51d50c0665c919cfd9fbf7dc74d4a1ae2cf0 (diff)
downloadcolm-0381aa5bd1808f9c5950adccf96aa78c528874d3.tar.gz
load prodNum when consing
-rw-r--r--colm/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/colm/tree.c b/colm/tree.c
index 8c705d56..c5dc548c 100644
--- a/colm/tree.c
+++ b/colm/tree.c
@@ -585,6 +585,7 @@ Tree *constructReplacementTree( Kid *kid, Tree **bindings, Program *prg, long pa
tree->tokdata = nodes[pat].length == 0 ? 0 :
stringAllocPointer( prg,
nodes[pat].data, nodes[pat].length );
+ tree->prodNum = nodes[pat].prodNum;
int objectLength = lelInfo[tree->id].objectLength;