mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
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.
This commit is contained in:
parent
51682717d7
commit
13c405127d
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user