aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2021-02-12 11:23:15 +0200
committerVeikka Tuominen <git@vexu.eu>2021-02-16 16:40:06 +0200
commit2a74a1ebaace8b5de1796b1756f65e421eb479a4 (patch)
tree94967e6c0d2016ccb370c29845e04a4150a1cd76 /src/type.zig
parent66bbd75a8346b8a292f0d95d4b60a5d7d11b73b2 (diff)
downloadzig-2a74a1ebaace8b5de1796b1756f65e421eb479a4.tar.gz
zig-2a74a1ebaace8b5de1796b1756f65e421eb479a4.zip
translate-c: bunch of small fixes to get it compiling
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/type.zig b/src/type.zig
index 8fcaba6fad..38fe6dd3e6 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -1682,6 +1682,8 @@ pub const Type = extern union {
.i32 => unreachable,
.u64 => unreachable,
.i64 => unreachable,
+ .u128 => unreachable,
+ .i128 => unreachable,
.usize => unreachable,
.isize => unreachable,
.c_short => unreachable,
@@ -2197,6 +2199,8 @@ pub const Type = extern union {
.i32 => .{ .signedness = .signed, .bits = 32 },
.u64 => .{ .signedness = .unsigned, .bits = 64 },
.i64 => .{ .signedness = .signed, .bits = 64 },
+ .u128 => .{ .signedness = .unsigned, .bits = 128 },
+ .i128 => .{ .signedness = .signed, .bits = 128 },
.usize => .{ .signedness = .unsigned, .bits = target.cpu.arch.ptrBitWidth() },
.isize => .{ .signedness = .signed, .bits = target.cpu.arch.ptrBitWidth() },
.c_short => .{ .signedness = .signed, .bits = CType.short.sizeInBits(target) },