zig

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

commit 13645585fe2904f38d13df12e571ecac5bf9e8e6 (tree)
parent 8f0618a5b1a1aa65ed1600b55aca0ab144c68932
Author: Josh Wolfe <thejoshwolfe@gmail.com>
Date:   Mon, 17 Sep 2018 21:25:23 -0400

link to #1544

Diffstat:
Mtest/cases/bit_shifting.zig | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/cases/bit_shifting.zig b/test/cases/bit_shifting.zig @@ -15,13 +15,15 @@ fn ShardedTable(comptime Key: type, comptime mask_bit_count: comptime_int, compt } fn getShardKey(key: Key) ShardKey { + // https://github.com/ziglang/zig/issues/1544 // this special case is needed because you can't u32 >> 32. if (ShardKey == u0) return 0; // this can be u1 >> u0 const shard_key = key >> shift_amount; - // TODO: this cast could be implicit if we teach the compiler that + // TODO: https://github.com/ziglang/zig/issues/1544 + // This cast could be implicit if we teach the compiler that // u32 >> 30 -> u2 return @intCast(ShardKey, shard_key); }