From a497fce6184a9ba272164ae95fc366b7312ef502 Mon Sep 17 00:00:00 2001 From: Doug <84757941+DougTCooke@users.noreply.github.com> Date: Sun, 14 Dec 2025 14:15:03 +1030 Subject: [PATCH] ILP64 data model fixes --- src/data_model.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/data_model.rs b/src/data_model.rs index 27f52c7..0954add 100644 --- a/src/data_model.rs +++ b/src/data_model.rs @@ -86,7 +86,8 @@ impl CDataModel { match self { LP32 => Size::U16, - ILP32 | LLP64 | LP64 | ILP64 => Size::U32, + ILP32 | LLP64 | LP64 => Size::U32, + ILP64 => Size::U64, } } /// The size of a C `long`. This is required to be at least 32 bits. @@ -94,8 +95,8 @@ impl CDataModel { use CDataModel::*; match self { - LP32 | ILP32 | LLP64 | ILP64 => Size::U32, - LP64 => Size::U64, + LP32 | ILP32 | LLP64 => Size::U32, + LP64 | ILP64 => Size::U64, } } /// The size of a C `long long`. This is required (in C99+) to be at least 64 bits.