authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2020-05-31 16:48:19+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-05-31 16:48:19+03:00
log21544267eead5cd7c68642a9a5504fbbd5e7d856
tree4ff6102be798c27fc81c19124079d0b888caa262
parent557d75d58a787ed0154e9bb2e58d26f9a5f9414e
parent13c405127d18334bb1b6c9e2011d2daa744bc7c4
signature Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #5481 from kubkon/typo-packedintarray

Fix typo in PackedIntArray tests

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

lib/std/packed_int_array.zig+2-2
...@@ -322,7 +322,7 @@ test "PackedIntArray" {...@@ -322,7 +322,7 @@ test "PackedIntArray" {
322 const int_count = 19;322 const int_count = 19;
323323
324 comptime var bits = 0;324 comptime var bits = 0;
325 inline while (bits <= 256) : (bits += 1) {325 inline while (bits <= max_bits) : (bits += 1) {
326 //alternate unsigned and signed326 //alternate unsigned and signed
327 const even = bits % 2 == 0;327 const even = bits % 2 == 0;
328 const I = std.meta.Int(even, bits);328 const I = std.meta.Int(even, bits);
...@@ -372,7 +372,7 @@ test "PackedIntSlice" {...@@ -372,7 +372,7 @@ test "PackedIntSlice" {
372 var buffer: [total_bytes]u8 = undefined;372 var buffer: [total_bytes]u8 = undefined;
373373
374 comptime var bits = 0;374 comptime var bits = 0;
375 inline while (bits <= 256) : (bits += 1) {375 inline while (bits <= max_bits) : (bits += 1) {
376 //alternate unsigned and signed376 //alternate unsigned and signed
377 const even = bits % 2 == 0;377 const even = bits % 2 == 0;
378 const I = std.meta.Int(even, bits);378 const I = std.meta.Int(even, bits);