diff options
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/hashes.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/hashes.nim b/lib/pure/hashes.nim index 48e192a59..6af515609 100644 --- a/lib/pure/hashes.nim +++ b/lib/pure/hashes.nim @@ -122,7 +122,7 @@ proc hash*(x: int): Hash {.inline.} = proc hash*(x: int64): Hash {.inline.} = ## Efficient hashing of `int64` integers. - result = toU32(x) + result = cast[int](x) proc hash*(x: uint): Hash {.inline.} = ## Efficient hashing of unsigned integers. @@ -130,7 +130,7 @@ proc hash*(x: uint): Hash {.inline.} = proc hash*(x: uint64): Hash {.inline.} = ## Efficient hashing of `uint64` integers. - result = toU32(cast[int](x)) + result = cast[int](x) proc hash*(x: char): Hash {.inline.} = ## Efficient hashing of characters. |