mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
include the tag id in the hash!
This commit is contained in:
parent
978cea4b8a
commit
6223892c6b
3 changed files with 156 additions and 20 deletions
|
@ -8,10 +8,9 @@ const str = @import("str.zig");
|
|||
const mem = std.mem;
|
||||
|
||||
pub fn wyhash(seed: u64, bytes: ?[*]const u8, length: usize) callconv(.C) u64 {
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
|
||||
if (bytes) |nonnull| {
|
||||
return wyhash_hash(seed, nonnull[0..length]);
|
||||
const slice = nonnull[0..length];
|
||||
return wyhash_hash(seed, slice);
|
||||
} else {
|
||||
return 42;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue