Fix overflow in timespan object. Cast to int32_t is too late.