]> granicus.if.org Git - graphviz/commitdiff
squash 8 -Wconversion warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Apr 2021 01:10:20 +0000 (18:10 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 27 Apr 2021 03:41:50 +0000 (20:41 -0700)
plugin/core/gvrender_core_tk.c

index 4452b7da1928f9dc1941a2ecb72b0ae41b70ba5c..38aee60c5d6556b3c9a058b1e397e26a2ed92952 100644 (file)
@@ -10,7 +10,9 @@
 
 #include "config.h"
 
+#include <inttypes.h>
 #include <stdarg.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -50,7 +52,7 @@ static void tkgen_print_color(GVJ_t * job, gvcolor_t color)
 static void tkgen_print_tags(GVJ_t *job)
 {
     char *ObjType;
-    unsigned int ObjId;
+    uint64_t ObjId;
     obj_state_t *obj = job->obj;
     int ObjFlag;
 
@@ -103,7 +105,7 @@ static void tkgen_print_tags(GVJ_t *job)
        assert (0);
        break;
     }
-    gvprintf(job, " -tags {%d%s%p}", ObjFlag, ObjType, ObjId);
+    gvprintf(job, " -tags {%d%s0x%" PRIx64 "}", ObjFlag, ObjType, ObjId);
 }
 
 static void tkgen_canvas(GVJ_t * job)