summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-10-08 13:26:51 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-10-08 13:33:34 -0700
commitf908dc6c1205feb66f3538096f24e2ee22947893 (patch)
tree5b053b55725648025b6d2f2172be2b9cceea63c3
parent8a91517ca6ea77633476595b0eb5b213357c60e5 (diff)
XkbIndentText: Fix -Wsign-compare warning
xkbtext.c: In function ‘XkbIndentText’: xkbtext.c:1529:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 1529 | for (i = 0; i < size; i++) { | ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/xkbtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xkbtext.c b/src/xkbtext.c
index d3a37a1..353c91e 100644
--- a/src/xkbtext.c
+++ b/src/xkbtext.c
@@ -1522,7 +1522,7 @@ char *
XkbIndentText(unsigned size)
{
static char buf[32];
- register int i;
+ unsigned int i;
if (size > 31)
size = 31;