Browse Source

Always convert float to double

Bastiaan Olij 4 years ago
parent
commit
3a5bd21092
1 changed files with 2 additions and 0 deletions
  1. 2 0
      binding_generator.py

+ 2 - 0
binding_generator.py

@@ -1561,6 +1561,8 @@ def correct_type(type_name, meta=None):
     if meta != None:
         if "int" in meta:
             return f"{meta}_t"
+        elif meta in type_conversion:
+            return type_conversion[type_name]
         else:
             return meta
     if type_name in type_conversion: