summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-03 15:36:59 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-03 15:36:59 -0700
commit93112d07d66cd9ee93ef00527df1da39dfaf7290 (patch)
tree914832c37bf0ed3e17f6400db617343af4883f28
parent954fc5687b9805201c425fd3139acb6d19bd9bd5 (diff)
Fix -Wsign-compare warning from gcc
ULabel.c: In function ‘SetValues’: ULabel.c:670:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < *num_args; i++) { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--ULabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ULabel.c b/ULabel.c
index f7d7a38..4a84632 100644
--- a/ULabel.c
+++ b/ULabel.c
@@ -661,7 +661,7 @@ SetValues(Widget current, Widget request, Widget new,
UCSLabelWidget curlw = (UCSLabelWidget) current;
UCSLabelWidget reqlw = (UCSLabelWidget) request;
UCSLabelWidget newlw = (UCSLabelWidget) new;
- int i;
+ unsigned int i;
Boolean was_resized = False, redisplay = False, checks[NUM_CHECKS];
for (i = 0; i < NUM_CHECKS; i++)