| ... | @@ -3337,7 +3337,10 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 { | ... | @@ -3337,7 +3337,10 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 { |
| 3337 | .char => 8, | 3337 | .char => 8, |
| 3338 | .short, .ushort => 16, | 3338 | .short, .ushort => 16, |
| 3339 | .int, .uint, .float => 32, | 3339 | .int, .uint, .float => 32, |
| 3340 | .long, .ulong => target.ptrBitWidth(), | 3340 | .long, .ulong => switch (target.os.tag) { |
| | 3341 | .plan9 => 32, // This is certainly A Choice. |
| | 3342 | else => target.ptrBitWidth(), |
| | 3343 | }, |
| 3341 | .longlong, .ulonglong, .double => 64, | 3344 | .longlong, .ulonglong, .double => 64, |
| 3342 | .longdouble => switch (target.cpu.arch) { | 3345 | .longdouble => switch (target.cpu.arch) { |
| 3343 | .x86, | 3346 | .x86, |