]> git.pld-linux.org Git - packages/ddcutil.git/commitdiff
cast time_t to intmax_t auto/th/ddcutil-0.9.3-2
authorJan Palus <atler@pld-linux.org>
Sun, 2 Dec 2018 13:33:49 +0000 (14:33 +0100)
committerJan Palus <atler@pld-linux.org>
Sun, 2 Dec 2018 13:33:49 +0000 (14:33 +0100)
on x86 sizeof(intmax_t) > sizeof(time_t)

ddcutil-x32.patch

index 6290e2382b6761b5572abebce43846bffa6ab373..85f5862916fdd318e1abb6aac03436bbb0fede0b 100644 (file)
@@ -35,7 +35,7 @@ index 71043629..d3a0336c 100644
     g_ptr_array_add(vals, strdup(buf));
  
 -   snprintf(buf, bufsz, "TIMESTAMP_MILLIS %ld", time_millis);
-+   snprintf(buf, bufsz, "TIMESTAMP_MILLIS %jd", time_millis);
++   snprintf(buf, bufsz, "TIMESTAMP_MILLIS %jd", (intmax_t) time_millis);
     g_ptr_array_add(vals, strdup(buf));
  }
  
This page took 0.22303 seconds and 4 git commands to generate.