mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +00:00
src/runtime: improve float/complex hashing
This allows positive and negative zero to hash to the same value, as required by Go. This is not perfect, but the best I could do without revamping all the hash funtions to take a seed. Fixes #2356
This commit is contained in:
Vendored
+4
@@ -72,3 +72,7 @@ structMap[{"tau", 3.14}]: 0
|
||||
structMap[{"tau", 6.28}]: 0
|
||||
tested preallocated map
|
||||
tested growing of a map
|
||||
2
|
||||
2
|
||||
2
|
||||
2
|
||||
|
||||
Reference in New Issue
Block a user