authorgravatar for 57442prudil@sstebrno.euJan Prudil <57442prudil@sstebrno.eu> 2020-10-17 14:50:26+02:00
committergravatar for 57442prudil@sstebrno.euJan Prudil <57442prudil@sstebrno.eu> 2020-10-17 14:50:26+02:00
log132813849ce593db232751e55c0d0fe7636d87f1
treed49a913cdee72620d6a6e134d792b2285e149902
parentaadccc4206ea605719de789bc7c9c48557d02331

Convert remaining call sites


2 files changed, 6 insertions(+), 6 deletions(-)

lib/std/packed_int_array.zig+4-4
......@@ -332,8 +332,8 @@ test "PackedIntArray" {
332332 comptime var bits = 0;
333333 inline while (bits <= max_bits) : (bits += 1) {
334334 //alternate unsigned and signed
335 const even = bits % 2 == 0;
336 const I = std.meta.Int(even, bits);
335 const sign: std.meta.Signedness = if (bits % 2 == 0) .signed else .unsigned;
336 const I = std.meta.Int(sign, bits);
337337
338338 const PackedArray = PackedIntArray(I, int_count);
339339 const expected_bytes = ((bits * int_count) + 7) / 8;
......@@ -384,8 +384,8 @@ test "PackedIntSlice" {
384384 comptime var bits = 0;
385385 inline while (bits <= max_bits) : (bits += 1) {
386386 //alternate unsigned and signed
387 const even = bits % 2 == 0;
388 const I = std.meta.Int(even, bits);
387 const sign: std.meta.Signedness = if (bits % 2 == 0) .signed else .unsigned;
388 const I = std.meta.Int(sign, bits);
389389 const P = PackedIntSlice(I);
390390
391391 var data = P.init(&buffer, int_count);
test/stage1/behavior/bit_shifting.zig+2-2
......@@ -3,10 +3,10 @@ const expect = std.testing.expect;
33
44fn ShardedTable(comptime Key: type, comptime mask_bit_count: comptime_int, comptime V: type) type {
55 const key_bits = @typeInfo(Key).Int.bits;
6 expect(Key == std.meta.Int(false, key_bits));
6 expect(Key == std.meta.Int(.unsigned, key_bits));
77 expect(key_bits >= mask_bit_count);
88 const shard_key_bits = mask_bit_count;
9 const ShardKey = std.meta.Int(false, mask_bit_count);
9 const ShardKey = std.meta.Int(.unsigned, mask_bit_count);
1010 const shift_amount = key_bits - shard_key_bits;
1111 return struct {
1212 const Self = @This();