summaryrefslogtreecommitdiff
path: root/pez.c
diff options
context:
space:
mode:
Diffstat (limited to 'pez.c')
-rw-r--r--pez.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pez.c b/pez.c
index 4b841dd..30735a2 100644
--- a/pez.c
+++ b/pez.c
@@ -1435,7 +1435,7 @@ checkindex(PezContext *cx, int *idx, Fn *srcfn, int srcpc, const char *what, int
}
*idx = fixtoint(num);
*idx = *idx < 0 ? len + *idx : *idx;
- if (*idx >= len) {
+ if ((uint) *idx >= len) {
return runerr(cx, srcfn, srcpc, "%s index out of range", what), 0;
}
return 1;