elm / core

Elm's core libraries
http://package.elm-lang.org/packages/elm/core/latest
BSD 3-Clause "New" or "Revised" License
2.79k stars 359 forks source link

Elm compiler does not like '0xFFFFFFFF' hexadecimal literal (on 32-bit Windows) #987

Open anddel opened 6 years ago

anddel commented 6 years ago

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

lue-bird commented 2 years ago

I found no usages of 0xFFFFFFFF so I'd assume this is fixed

peteryland commented 1 year ago

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.