From a21166f1b913960c3d0b24c72457fad3d1bf0d7a Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 6 Sep 2020 10:16:04 -0700 Subject: [PATCH] squash two compiler warnings in aagerror --- lib/cgraph/scan.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; -- 2.40.0