fixup typecast

This commit is contained in:
Daniel Stenberg 2025-08-01 10:55:43 +02:00
parent 509a01b1a9
commit 68ac663211
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -573,7 +573,7 @@ static const char *outtime(const char *ptr, /* %time{ ... */
curl_off_t val;
curlx_str_number(&timestr, &val, TIME_T_MAX);
cnow.tv_sec = (time_t)val;
cnow.tv_usec = val % 1000000;
cnow.tv_usec = (unsigned int)(val % 1000000);
}
}
#endif