Small fix for parse_ipv4

Still problems on 32bit due to issues discussed in #3447