mirror of
https://github.com/curl/curl.git
synced 2026-07-16 03:47:15 +03:00
smb: fix compiler warning
An old version of GCC (4.5.2 on a mipsel) moans about the constant being too big to fit in a long. Closes #15902
This commit is contained in:
parent
3eb57d6ba7
commit
d984209e59
1 changed files with 1 additions and 1 deletions
|
|
@ -915,7 +915,7 @@ static CURLcode smb_connection_state(struct Curl_easy *data, bool *done)
|
|||
*/
|
||||
static void get_posix_time(time_t *out, curl_off_t timestamp)
|
||||
{
|
||||
timestamp -= 116444736000000000;
|
||||
timestamp -= CURL_OFF_T_C(116444736000000000);
|
||||
timestamp /= 10000000;
|
||||
#if SIZEOF_TIME_T < SIZEOF_CURL_OFF_T
|
||||
if(timestamp > TIME_T_MAX)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue