From 63f48f29a8c93ead05b53823fc62fa909d527431 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 3 Apr 2022 14:33:19 -0700 Subject: Fix -Wsign-compare warnings in PrintTableType1() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xcmsdb.c: In function ‘PrintTableType1’: xcmsdb.c:299:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (count = 0; count < max_index+1; count++) { ^ xcmsdb.c:307:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (count = 0; count < max_index+1; count++) { ^ xcmsdb.c:315:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (count = 0; count < max_index+1; count++) { ^ Signed-off-by: Alan Coopersmith --- xcmsdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcmsdb.c b/xcmsdb.c index 35ab22b..4fe579a 100644 --- a/xcmsdb.c +++ b/xcmsdb.c @@ -286,7 +286,7 @@ PrintTableType1(int format, char **pChar, unsigned long *pCount) * */ { - int count; + unsigned int count; unsigned int max_index; unsigned short hValue; XcmsFloat fValue; -- cgit v1.2.3