Timeval fields are integers.
Fix undefined behavior.