From 9316735038f87c680f97c1442c464e42d3968dca Mon Sep 17 00:00:00 2001 From: Barinzaya Date: Tue, 19 Nov 2024 09:48:07 -0500 Subject: [PATCH] Changed Odin bindgen to use core:c aliases. This affects intptr_t, uintptr_t, and size_t, which are variable-sized. The previous mappings were mapped directly to 64-bit values. --- bindgen/gen_odin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindgen/gen_odin.py b/bindgen/gen_odin.py index d2bc55df6..497d756cf 100644 --- a/bindgen/gen_odin.py +++ b/bindgen/gen_odin.py @@ -105,9 +105,9 @@ 'uint64_t': 'u64', 'float': 'f32', 'double': 'f64', - 'uintptr_t': 'u64', - 'intptr_t': 'i64', - 'size_t': 'u64' + 'uintptr_t': 'c.uintptr_t', + 'intptr_t': 'c.intptr_t', + 'size_t': 'c.size_t' } prim_defaults = {