Fix ptrcall passing invalid size int.

pull/197/head
bruvzg 2018-11-17 18:23:52 +02:00
parent d6a8885e31
commit 700310c8c3
No known key found for this signature in database
GPG Key ID: 89DD917D9CE4218D
1 changed files with 4 additions and 0 deletions

View File

@ -541,6 +541,8 @@ def generate_icall_header(icalls):
if is_core_type(arg): if is_core_type(arg):
method_signature += arg + "&" method_signature += arg + "&"
elif arg == "int":
method_signature += "int64_t "
elif arg == "float": elif arg == "float":
method_signature += "double " method_signature += "double "
elif is_primitive(arg): elif is_primitive(arg):
@ -594,6 +596,8 @@ def generate_icall_implementation(icalls):
if is_core_type(arg): if is_core_type(arg):
method_signature += arg + "& " method_signature += arg + "& "
elif arg == "int":
method_signature += "int64_t "
elif arg == "float": elif arg == "float":
method_signature += "double " method_signature += "double "
elif is_primitive(arg): elif is_primitive(arg):