Revert "tweaked typecast"

This reverts commit db1915892b.
This commit is contained in:
Daniel Stenberg 2025-08-01 14:10:48 +02:00
parent db1915892b
commit 1a8a481120
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -571,11 +571,9 @@ static const char *outtime(const char *ptr, /* %time{ ... */
const char *timestr = getenv("CURL_TIME");
if(timestr) {
curl_off_t val;
unsigned int usecs;
curlx_str_number(&timestr, &val, TIME_T_MAX);
cnow.tv_sec = (time_t)val;
usecs = (unsigned int)(val % 1000000);
cnow.tv_usec = usecs;
cnow.tv_usec = (unsigned int)(val % 1000000);
}
}
#endif