mirror of
https://github.com/curl/curl.git
synced 2026-07-30 12:18:08 +03:00
tweaked typecast
This commit is contained in:
parent
68ac663211
commit
db1915892b
1 changed files with 3 additions and 1 deletions
|
|
@ -571,9 +571,11 @@ 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(×tr, &val, TIME_T_MAX);
|
||||
cnow.tv_sec = (time_t)val;
|
||||
cnow.tv_usec = (unsigned int)(val % 1000000);
|
||||
usecs = (unsigned int)(val % 1000000);
|
||||
cnow.tv_usec = usecs;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue