From 89881ceb677b3e493e38f3ee0e6621d813a42d34 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 22 Dec 2022 19:07:25 -0800 Subject: [PATCH] common cvtAndAppend: use a more appropriate type for 'len' Squashes a -Wsign-conversion warning. --- lib/common/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/utils.c b/lib/common/utils.c index d0aed9a76..31e5dc108 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -1356,7 +1356,7 @@ cvtAndAppend (unsigned char c, agxbuf* xb) char *s = latin1ToUTF8(buf); char *p = s; - int len = strlen(s); + size_t len = strlen(s); while (len-- > 1) agxbputc(xb, *p++); c = *p; -- 2.40.0