Copy link
@gvanem

gvanem Oct 26, 2017

Contributor

This change and the typedef for timediff_t (really an int) on MSVC 32-bit has suddenly generated these extra warnings:

timeval.c(137): warning C4305: 'return': truncation from '__int64' to 'timediff_t'
timeval.c(139): warning C4305: 'return': truncation from '__int64' to 'timediff_t'
timeval.c(135): warning C4244: 'initializing': conversion from 'time_t' to 'timediff_t', possible loss of data
timeval.c(151): warning C4305: 'return': truncation from '__int64' to 'timediff_t'
timeval.c(153): warning C4305: 'return': truncation from '__int64' to 'timediff_t'
timeval.c(149): warning C4244: 'initializing': conversion from 'time_t' to 'timediff_t', possible loss of data

Seems strange that a storage size type (ssize_t) has anything to do with a time type.
Maybe timediff_t should be an __int64? If I do that, all above warnings disappears.