authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-05-30 23:17:55+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-05-30 23:17:55+02:00
log13c405127d18334bb1b6c9e2011d2daa744bc7c4
tree1c6107a96842332e2997624615879de62bf5adcf
parent51682717d773aa4bdee89bc67cab08dc9b4bcc15

Fix typo in PackedIntArray tests

Both `PackedIntArray` and `PackedIntSlice` tests defined `max_bits` but didn't use it in the predicate in the inline while loop.

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

lib/std/packed_int_array.zig+2-2
......@@ -322,7 +322,7 @@ test "PackedIntArray" {
322322 const int_count = 19;
323323
324324 comptime var bits = 0;
325 inline while (bits <= 256) : (bits += 1) {
325 inline while (bits <= max_bits) : (bits += 1) {
326326 //alternate unsigned and signed
327327 const even = bits % 2 == 0;
328328 const I = std.meta.Int(even, bits);
......@@ -372,7 +372,7 @@ test "PackedIntSlice" {
372372 var buffer: [total_bytes]u8 = undefined;
373373
374374 comptime var bits = 0;
375 inline while (bits <= 256) : (bits += 1) {
375 inline while (bits <= max_bits) : (bits += 1) {
376376 //alternate unsigned and signed
377377 const even = bits % 2 == 0;
378378 const I = std.meta.Int(even, bits);