Commit f8c286a
authored
Be explicit about the type and bound we're checking in
Thanks to a heterogeneous comparison operator on `BinaryInteger`, the
expression `someUInt64 < 1 &<< 32` was compiling incorrectly on 32-bit
architectures, because the right-hand side was being inferred as `Int`
instead of `UInt64`. And on a 32-bit system, `1 &<< 32` is zero.
Fixes apple#1858.BytecodeReader.nextInt32. (apple#1859)1 parent 05f940e commit f8c286a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments