Merge pull request #5481 from kubkon/typo-packedintarray

Fix typo in PackedIntArray tests
This commit is contained in:
Veikka Tuominen 2020-05-31 16:48:19 +03:00 committed by GitHub
commit 21544267ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);