diff options
author | Arne Döring <arne.doering@gmx.net> | 2019-08-07 15:53:16 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-08-07 15:53:16 +0200 |
commit | afbcd1b330f16294cee32efca1b2f9060874a497 (patch) | |
tree | d0406792478fa58d3c487ff6f72f999c29f25343 /lib/pure | |
parent | 8407a574992ebd6bccec647a902cf54a4de8db18 (diff) | |
download | Nim-afbcd1b330f16294cee32efca1b2f9060874a497.tar.gz |
int128 on firstOrd, lastOrd and lengthOrd (#11701)
* fixes #11847
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. |