mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
fix VM uint conversion size bug, stricter int gen on JS (#22150)
* fix VM uint conversion bug, stricter int gen on JS fixes #19929 * fix float -> uint64 conversion too * no need to mask to source type * simpler diff with explanation, add test for described issue
This commit is contained in:
@@ -29,6 +29,9 @@ block hashes:
|
||||
const wy123 = hashWangYi1(123)
|
||||
doAssert wy123 != 0
|
||||
doAssert hashWangYi1(123) == wy123
|
||||
const wyNeg123 = hashWangYi1(-123)
|
||||
doAssert wyNeg123 != 0
|
||||
doAssert hashWangYi1(-123) == wyNeg123
|
||||
|
||||
|
||||
# "hashIdentity value incorrect at 456"
|
||||
|
||||
Reference in New Issue
Block a user