tcp: fix bogus time update due to missing cast