summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-03 14:33:19 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-03 14:33:19 -0700
commit63f48f29a8c93ead05b53823fc62fa909d527431 (patch)
treeee73fe9eccd6f99f75fb52c1f594385e7e356f17
parent6c5d7d7ba21b69f606b832e38efe64a4805bd94e (diff)
Fix -Wsign-compare warnings in PrintTableType1()
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 <alan.coopersmith@oracle.com>
-rw-r--r--xcmsdb.c2
1 files changed, 1 insertions, 1 deletions
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;