fix method calls that take floats/doubles
parent
6f8ce54b1a
commit
ae38ebc80c
|
@ -501,6 +501,8 @@ def generate_icall_header(icalls):
|
||||||
|
|
||||||
if is_core_type(arg):
|
if is_core_type(arg):
|
||||||
method_signature += arg + "&"
|
method_signature += arg + "&"
|
||||||
|
elif arg == "float":
|
||||||
|
method_signature += "double "
|
||||||
elif is_primitive(arg):
|
elif is_primitive(arg):
|
||||||
method_signature += arg
|
method_signature += arg
|
||||||
else:
|
else:
|
||||||
|
@ -552,6 +554,8 @@ def generate_icall_implementation(icalls):
|
||||||
|
|
||||||
if is_core_type(arg):
|
if is_core_type(arg):
|
||||||
method_signature += arg + "& "
|
method_signature += arg + "& "
|
||||||
|
elif arg == "float":
|
||||||
|
method_signature += "double "
|
||||||
elif is_primitive(arg):
|
elif is_primitive(arg):
|
||||||
method_signature += arg + " "
|
method_signature += arg + " "
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue