We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c17f0 commit 814a02aCopy full SHA for 814a02a
lib/pure/hashes.nim
@@ -130,8 +130,9 @@ proc hash*(x: pointer): Hash {.inline.} =
130
}
131
"""
132
else:
133
- # bugfix #11764: s/cast[Hash]/hash/
134
- result = hash(cast[uint](x) shr 3) # skip the alignment
+ # 2 bug fixes: s/cast[Hash]()/hash()/ (#11764); and also s/uint/BiggestInt/
+ # note that we can't use unsigned because nimscript doesn't have `$`(uint)
135
+ result = hash(cast[ByteAddress](x) shr 3) # skip the alignment
136
# CHECKME: why? isn't that responsability of caller if he needs this behavior?
137
138
when not defined(booting):
0 commit comments