diff options
Diffstat (limited to 'pez.c')
| -rw-r--r-- | pez.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |