]> granicus.if.org Git - graphviz/commitdiff
Ghostscript plugin gvloadimage_gs_load: squash -Wsign-compare warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 3 Apr 2022 20:06:29 +0000 (13:06 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 7 Apr 2022 13:46:40 +0000 (06:46 -0700)
plugin/gs/gvloadimage_gs.c

index b13a1314565897140e9bcc2098a0211285075454..b19d4aa5ccdbc7147e5b8c0ea445ea7900dfffad 100644 (file)
@@ -197,7 +197,7 @@ static cairo_pattern_t* gvloadimage_gs_load(GVJ_t * job, usershape_t *us)
 
 #define GSAPI_REVISION_REQUIRED 863
        rc = gsapi_revision(&gsapi_revision_info, sizeof(gsapi_revision_t));
-        if (rc && rc < sizeof(gsapi_revision_t)) {
+        if (rc && rc < (int)sizeof(gsapi_revision_t)) {
            job->common->errorfn("gs revision - struct too short %d\n", rc);
            return NULL;
         }