aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2020-05-31 16:48:19 +0300
committerGitHub <noreply@github.com>2020-05-31 16:48:19 +0300
commit21544267eead5cd7c68642a9a5504fbbd5e7d856 (patch)
tree4ff6102be798c27fc81c19124079d0b888caa262 /lib/std
parent557d75d58a787ed0154e9bb2e58d26f9a5f9414e (diff)
parent13c405127d18334bb1b6c9e2011d2daa744bc7c4 (diff)
downloadzig-21544267eead5cd7c68642a9a5504fbbd5e7d856.tar.gz
zig-21544267eead5cd7c68642a9a5504fbbd5e7d856.zip
Merge pull request #5481 from kubkon/typo-packedintarray
Fix typo in PackedIntArray tests
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/packed_int_array.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/packed_int_array.zig b/lib/std/packed_int_array.zig
index d4bb1276d8..07a79655ad 100644
--- 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);