aboutsummaryrefslogtreecommitdiff
path: root/lib/std/hash/crc.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-04-28 22:58:12 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-04-28 22:58:12 -0700
commitc60d8f017ea698c5fe4c7c6046f8ca09f0b8bf1d (patch)
treebbb3db8d212f7612bc5d81f6754f33a060b06ae2 /lib/std/hash/crc.zig
parent0c71d2fdc1cfa251b1c45a93724240a052c77a92 (diff)
downloadzig-c60d8f017ea698c5fe4c7c6046f8ca09f0b8bf1d.tar.gz
zig-c60d8f017ea698c5fe4c7c6046f8ca09f0b8bf1d.zip
std: remove redundant comptime keyword
@g-w1's fancy new compile error in action
Diffstat (limited to 'lib/std/hash/crc.zig')
-rw-r--r--lib/std/hash/crc.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/hash/crc.zig b/lib/std/hash/crc.zig
index a2d6ed429c..c222075559 100644
--- a/lib/std/hash/crc.zig
+++ b/lib/std/hash/crc.zig
@@ -28,7 +28,7 @@ pub const Crc32 = Crc32WithPoly(.IEEE);
pub fn Crc32WithPoly(comptime poly: Polynomial) type {
return struct {
const Self = @This();
- const lookup_tables = comptime block: {
+ const lookup_tables = block: {
@setEvalBranchQuota(20000);
var tables: [8][256]u32 = undefined;
@@ -128,7 +128,7 @@ test "crc32 castagnoli" {
pub fn Crc32SmallWithPoly(comptime poly: Polynomial) type {
return struct {
const Self = @This();
- const lookup_table = comptime block: {
+ const lookup_table = block: {
var table: [16]u32 = undefined;
for (table) |*e, i| {