From: prpr19xx on github <58330423+prpr19xx@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:22:01 +0000 (+0000) Subject: smb: fix compiler warning X-Git-Tag: curl-8_12_0~206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d984209e59c83245aabb134dc7eed7431396f70e;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/smb.c b/lib/smb.c index a72ece62ad..3e8a0f7760 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -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)