zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 21544267eead5cd7c68642a9a5504fbbd5e7d856 (tree)
parent 557d75d58a787ed0154e9bb2e58d26f9a5f9414e
Author: Veikka Tuominen <git@vexu.eu>
Date:   Sun, 31 May 2020 16:48:19 +0300

Merge pull request #5481 from kubkon/typo-packedintarray

Fix typo in PackedIntArray tests
Diffstat:
Mlib/std/packed_int_array.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/std/packed_int_array.zig b/lib/std/packed_int_array.zig @@ -322,7 +322,7 @@ test "PackedIntArray" { const int_count = 19; comptime var bits = 0; - inline while (bits <= 256) : (bits += 1) { + inline while (bits <= max_bits) : (bits += 1) { //alternate unsigned and signed const even = bits % 2 == 0; const I = std.meta.Int(even, bits); @@ -372,7 +372,7 @@ test "PackedIntSlice" { var buffer: [total_bytes]u8 = undefined; comptime var bits = 0; - inline while (bits <= 256) : (bits += 1) { + inline while (bits <= max_bits) : (bits += 1) { //alternate unsigned and signed const even = bits % 2 == 0; const I = std.meta.Int(even, bits);