]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
smb: fix compiler warning
authorprpr19xx on github <58330423+prpr19xx@users.noreply.github.com>
Thu, 2 Jan 2025 16:22:01 +0000 (16:22 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 2 Jan 2025 17:01:17 +0000 (18:01 +0100)
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

lib/smb.c

index a72ece62ad70db563d5490185d652752ee041d94..3e8a0f77605d5af784142ffb40a8fed9d4685601 100644 (file)
--- 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)