Skip to content

Commit

Permalink
Changed Odin bindgen to use core:c aliases.
Browse files Browse the repository at this point in the history
This affects intptr_t, uintptr_t, and size_t, which are variable-sized.
The previous mappings were mapped directly to 64-bit values.
  • Loading branch information
Barinzaya committed Nov 19, 2024
1 parent 2c6fc74 commit 9316735
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindgen/gen_odin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 9316735

Please sign in to comment.