We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f83e798 commit e51be88Copy full SHA for e51be88
1 file changed
src/data_model.rs
@@ -86,16 +86,17 @@ impl CDataModel {
86
87
match self {
88
LP32 => Size::U16,
89
- ILP32 | LLP64 | LP64 | ILP64 => Size::U32,
+ ILP32 | LLP64 | LP64 => Size::U32,
90
+ ILP64 => Size::U64,
91
}
92
93
/// The size of a C `long`. This is required to be at least 32 bits.
94
pub fn long_size(self) -> Size {
95
use CDataModel::*;
96
97
- LP32 | ILP32 | LLP64 | ILP64 => Size::U32,
98
- LP64 => Size::U64,
+ LP32 | ILP32 | LLP64 => Size::U32,
99
+ LP64 | ILP64 => Size::U64,
100
101
102
/// The size of a C `long long`. This is required (in C99+) to be at least 64 bits.
0 commit comments