From ae38ebc80c59a52470a5698d6451ccab9218d3b7 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Tue, 8 May 2018 21:58:48 -0300 Subject: [PATCH] fix method calls that take floats/doubles --- binding_generator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/binding_generator.py b/binding_generator.py index 0a1d2ffb..26bcc176 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -501,6 +501,8 @@ def generate_icall_header(icalls): if is_core_type(arg): method_signature += arg + "&" + elif arg == "float": + method_signature += "double " elif is_primitive(arg): method_signature += arg else: @@ -552,6 +554,8 @@ def generate_icall_implementation(icalls): if is_core_type(arg): method_signature += arg + "& " + elif arg == "float": + method_signature += "double " elif is_primitive(arg): method_signature += arg + " " else: