[packages/ddcutil] cast time_t to intmax_t

atler atler at pld-linux.org
Sun Dec 2 14:35:35 CET 2018


commit bfdaa9b2a60e2ec2aae0a9daf452b4812a34fbdb
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Dec 2 14:33:49 2018 +0100

    cast time_t to intmax_t
    
    on x86 sizeof(intmax_t) > sizeof(time_t)

 ddcutil-x32.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ddcutil-x32.patch b/ddcutil-x32.patch
index 6290e23..85f5862 100644
--- a/ddcutil-x32.patch
+++ b/ddcutil-x32.patch
@@ -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));
  }
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ddcutil.git/commitdiff/bfdaa9b2a60e2ec2aae0a9daf452b4812a34fbdb



More information about the pld-cvs-commit mailing list