core
core copied to clipboard
Elm compiler does not like '0xFFFFFFFF' hexadecimal literal (on 32-bit Windows)
https://github.com/elm/core/blob/01a21650a3d9da1f0aeadd71998d37e442a64c34/src/Array.elm#L102
When using 32-bit Windows, the hexadecimal literal 0xFFFFFFFF
breaks the compilation of elm/core
library.
Replacing it with its decimal representation, i.e. 4294967295
allows to compile successfully.
The same happens in the elm/random
module:
https://github.com/elm/random/blob/139072e682c4af579f5e75bae625a49d9bf2161c/src/Random.elm#L815
I found no usages of 0xFFFFFFFF
so I'd assume this is fixed
This is also a problem on armv7l (Raspberry Pi). There is an instance of 0xFFFFFFFF in the current master at https://github.com/elm/core/blob/master/src/Array.elm#L102. The above workaround also fixed it for me.