summaryrefslogtreecommitdiff
path: root/src/pdacodegen.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-12-07 19:13:44 -0500
committerAdrian Thurston <thurston@complang.org>2014-12-07 19:13:44 -0500
commit17b04f1c8be3214286500b72141611a2db9e9796 (patch)
treefa549ea17e9260c36b4206c6edfa9ae386b24f60 /src/pdacodegen.cc
parent5b927d9ccf76631d5f1e9149d121f8704d373983 (diff)
downloadcolm-17b04f1c8be3214286500b72141611a2db9e9796.tar.gz
find the list element pointers instead assuming they are the first item
Diffstat (limited to 'src/pdacodegen.cc')
-rw-r--r--src/pdacodegen.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pdacodegen.cc b/src/pdacodegen.cc
index b420ab82..056b569b 100644
--- a/src/pdacodegen.cc
+++ b/src/pdacodegen.cc
@@ -348,9 +348,10 @@ void PdaCodeGen::writeRuntimeData( RuntimeData *runtimeData, PdaTables *pdaTable
runtimeData->genericInfo[i].type << ", " <<
runtimeData->genericInfo[i].typeArg << ", " <<
runtimeData->genericInfo[i].keyOffset << ", " <<
- runtimeData->genericInfo[i].keyType << ", " <<
- runtimeData->genericInfo[i].langElId << ", " <<
- runtimeData->genericInfo[i].parserId << " },\n";
+ runtimeData->genericInfo[i].keyType << ", " <<
+ runtimeData->genericInfo[i].langElId << ", " <<
+ runtimeData->genericInfo[i].parserId << ", " <<
+ runtimeData->genericInfo[i].elOffset << " },\n";
}
out << "};\n\n";