소스 검색

fix method calls that take floats/doubles

Marcelo Fernandez 7 년 전
부모
커밋
ae38ebc80c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      binding_generator.py

+ 4 - 0
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: