We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88fbc89 commit ce876deCopy full SHA for ce876de
runtime/js/hash.js
@@ -54,7 +54,9 @@ function caml_hash_mix_float(hash, v0) {
54
l = 0x00000001;
55
} else if (h === (0x80000000 | 0) && l === 0) {
56
/* Normalize -0 into +0 */
57
- h = 1;
+ // This code path is not used by caml_hash because 0 and -0 look
58
+ // like integers
59
+ h = 0;
60
}
61
hash = caml_hash_mix_int(hash, l);
62
hash = caml_hash_mix_int(hash, h);
0 commit comments