From c26f12bc9af55eab946337f59e777a3dc9e1bb9e Mon Sep 17 00:00:00 2001 From: Nikolas <32980656+Not-Nik@users.noreply.github.com> Date: Sun, 29 Nov 2020 11:34:01 +0100 Subject: [PATCH] Update generate_functions.py --- lib/generate_functions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/generate_functions.py b/lib/generate_functions.py index d31c9c3..4e965f5 100644 --- a/lib/generate_functions.py +++ b/lib/generate_functions.py @@ -13,6 +13,8 @@ def c_to_zig_type(t: str) -> str: t = t.replace("const ", "") if t == "float": t = "f32" + if t == "double": + t = "f64" if t == "int": t = "c_int" if t == "unsigned int":