aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-09-12 14:16:32 +0000
committerbloodstalker <thabogre@gmail.com>2018-09-12 14:16:32 +0000
commitd4b803f00429472efe8ea66f4f4105ab40712dff (patch)
treed7649c56edf19e6e08154810ca38187d05630148 /main.py
parentupdate (diff)
downloadfaultreiber-d4b803f00429472efe8ea66f4f4105ab40712dff.tar.gz
faultreiber-d4b803f00429472efe8ea66f4f4105ab40712dff.zip
finally fixed
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index e7bdd27..a6a886c 100755
--- a/main.py
+++ b/main.py
@@ -447,7 +447,7 @@ class CodeGen(object):
else:
read_source.write(static + inline + text.c_read_elem_sig.replace("YYY", elem.attrib["name"]).replace("XXX", elem.attrib["name"]+pointer))
read_source.write("*dummy = malloc(sizeof(" + elem.attrib["name"] + "));\n")
- read_source.write(text.c_void_manager_proto.replace("XXX", "dummy"));
+ read_source.write(text.c_void_manager_proto.replace("XXX", "*dummy"));
read_source.write(text.c_read_gen.replace("XXX", "(*dummy)->" + elem.attrib["name"]).replace("YYY", type_resolver(elem, self.def_elems)))
read_source.write("return *dummy;\n")
read_source.write(text.c_function_close + "\n")