Skip to content

Commit e51be88

Browse files
authored
ILP64 data model fixes (#125)
1 parent f83e798 commit e51be88

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/data_model.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,17 @@ impl CDataModel {
8686

8787
match self {
8888
LP32 => Size::U16,
89-
ILP32 | LLP64 | LP64 | ILP64 => Size::U32,
89+
ILP32 | LLP64 | LP64 => Size::U32,
90+
ILP64 => Size::U64,
9091
}
9192
}
9293
/// The size of a C `long`. This is required to be at least 32 bits.
9394
pub fn long_size(self) -> Size {
9495
use CDataModel::*;
9596

9697
match self {
97-
LP32 | ILP32 | LLP64 | ILP64 => Size::U32,
98-
LP64 => Size::U64,
98+
LP32 | ILP32 | LLP64 => Size::U32,
99+
LP64 | ILP64 => Size::U64,
99100
}
100101
}
101102
/// The size of a C `long long`. This is required (in C99+) to be at least 64 bits.

0 commit comments

Comments
 (0)