aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xluatablegen.py2
-rw-r--r--test/luwasm.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/luatablegen.py b/luatablegen.py
index f39db21..ae75733 100755
--- a/luatablegen.py
+++ b/luatablegen.py
@@ -562,7 +562,7 @@ class TbgParser(object):
if ref_type_node != None:
c_source.write("push_" + ref_type_node.attrib["name"] + "(__ls, _st->" + child.attrib["name"] + ");\n")
else:
- c_source.write("push_lightuserdata(__ls, _st->" + child.attrib["name"] + ");\n")
+ c_source.write("lua_pushlightuserdata(__ls, _st->" + child.attrib["name"] + ");\n")
# FIXME
else: pass
else:
diff --git a/test/luwasm.xml b/test/luwasm.xml
index 3704b28..d650f68 100644
--- a/test/luwasm.xml
+++ b/test/luwasm.xml
@@ -132,7 +132,7 @@
<Field_Str name="field_str" type="string" count="1" size="self::Field_Len" luatype="string"/>
<Kind name="kind" encoding="leb128u" type="uint8" count="1" luatype="integer"/>
<Type name="type" conditional="true" condition="self::Kind" type="FT::conditional" luatype="conditional">
- <condition0 name="type" encoding="leb128u" type="uint32" luatype="integer">0</condition0>
+ <condition0 name="type" encoding="leb128u" type="uint32" luatype="lightuserdata">0</condition0>
<condition1 name="type" type="self::Table_Type" luatype="lightuserdata">1</condition1>
<condition2 name="type" type="self::Memory_Type" luatype="lightuserdata">2</condition2>
<condition3 name="type" type="self::Global_Type" luatype="lightuserdata">3</condition3>