diff options
| author | Tadeo Kondrak <me@tadeo.ca> | 2020-10-17 18:04:53 -0600 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2020-11-19 18:59:21 +0200 |
| commit | 25ec2dbc1e2302d1138749262b588d3e438fcd55 (patch) | |
| tree | 34187fbd88b2e9b046f50cea93f482a191bc3248 /lib/std/packed_int_array.zig | |
| parent | 2b7781d82ad8d2234b89257676670957e005f214 (diff) | |
| download | zig-25ec2dbc1e2302d1138749262b588d3e438fcd55.tar.gz zig-25ec2dbc1e2302d1138749262b588d3e438fcd55.zip | |
Add builtin.Signedness, use it instead of is_signed
Diffstat (limited to 'lib/std/packed_int_array.zig')
| -rw-r--r-- | lib/std/packed_int_array.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/packed_int_array.zig b/lib/std/packed_int_array.zig index ed22931cb5..c3222c483c 100644 --- a/lib/std/packed_int_array.zig +++ b/lib/std/packed_int_array.zig @@ -332,7 +332,7 @@ test "PackedIntArray" { comptime var bits = 0; inline while (bits <= max_bits) : (bits += 1) { //alternate unsigned and signed - const sign: std.meta.Signedness = if (bits % 2 == 0) .signed else .unsigned; + const sign: builtin.Signedness = if (bits % 2 == 0) .signed else .unsigned; const I = std.meta.Int(sign, bits); const PackedArray = PackedIntArray(I, int_count); @@ -384,7 +384,7 @@ test "PackedIntSlice" { comptime var bits = 0; inline while (bits <= max_bits) : (bits += 1) { //alternate unsigned and signed - const sign: std.meta.Signedness = if (bits % 2 == 0) .signed else .unsigned; + const sign: builtin.Signedness = if (bits % 2 == 0) .signed else .unsigned; const I = std.meta.Int(sign, bits); const P = PackedIntSlice(I); |
