From: Matthew Fernandez Date: Sun, 6 Sep 2020 17:16:04 +0000 (-0700) Subject: squash two compiler warnings in aagerror X-Git-Tag: 2.46.0~20^2^2~77^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a21166f1b913960c3d0b24c72457fad3d1bf0d7a;p=graphviz squash two compiler warnings in aagerror --- diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l index a80fe683d..8a261f02c 100644 --- a/lib/cgraph/scan.l +++ b/lib/cgraph/scan.l @@ -255,7 +255,7 @@ void aagerror(char *str) sprintf(buf, " scanning a quoted string (missing endquote? longer than %d?)", YY_BUF_SIZE); agxbput (&xb, buf); if (*Sbuf) { - int len = strlen(Sbuf); + size_t len = strlen(Sbuf); agxbput (&xb, "\nString starting:\""); if (len > 80) Sbuf[80] = '\0'; @@ -266,7 +266,7 @@ void aagerror(char *str) sprintf(buf, " scanning a HTML string (missing '>'? bad nesting? longer than %d?)", YY_BUF_SIZE); agxbput (&xb, buf); if (*Sbuf) { - int len = strlen(Sbuf); + size_t len = strlen(Sbuf); agxbput (&xb, "\nString starting:<"); if (len > 80) Sbuf[80] = '\0';