Fix overflow in implicit constant conversion warning