Fix a possible integer overflow in long_c2i