kazu-yamamoto / iproute

IP Routing Table in Haskell
http://www.mew.org/~kazu/proj/iproute/
BSD 3-Clause "New" or "Revised" License
47 stars 28 forks source link

Literal 4294967295 is out of the Int range -2147483648..2147483647 on 32bit systems #34

Open juhp opened 8 years ago

juhp commented 8 years ago

While building iproute on i686 and armv7 Linux with ghc-7.10.3 I noted some warnings:

Preprocessing library iproute-1.7.0...
[1 of 8] Compiling Data.IP.Addr     ( Data/IP/Addr.hs, dist/build/Data/IP/Addr.o )
Data/IP/Addr.hs:128:50: Warning:
    Literal 4294967295 is out of the Int range -2147483648..2147483647
Data/IP/Addr.hs:129:50: Warning:
    Literal 4294967295 is out of the Int range -2147483648..2147483647
Data/IP/Addr.hs:130:50: Warning:
    Literal 4294967295 is out of the Int range -2147483648..2147483647
Data/IP/Addr.hs:131:50: Warning:
    Literal 4294967295 is out of the Int range -2147483648..2147483647

Note sure if they are serious but thought better report them. :)

kazu-yamamoto commented 8 years ago

@greydot I think that this warnings are caused from the code which you wrote. Would you check?

greydot commented 8 years ago

Yeah, looks like thats my bad. Will fix this later today.

kazu-yamamoto commented 8 years ago

A new version has been released.

juhp commented 8 years ago

Thanks!