Forráskód Böngészése

Always convert float to double

Bastiaan Olij 4 éve
szülő
commit
3a5bd21092
1 módosított fájl, 2 hozzáadás és 0 törlés
  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: