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:
prpr19xx on github 2025-01-02 16:22:01 +00:00 committed by Daniel Stenberg
parent 3eb57d6ba7
commit d984209e59
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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)