patch 8.2.0254: compiler warning for checking size_t to be negative
Problem: Compiler warning for checking size_t to be negative.
Solution: Only check for zero. (Zoltan Arpadffy)
diff --git a/src/vim9compile.c b/src/vim9compile.c
index c6201be..4413a51 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -138,7 +138,7 @@
{
int idx;
- if (len <= 0)
+ if (len == 0)
return -1;
for (idx = 0; idx < cctx->ctx_locals.ga_len; ++idx)
{
@@ -160,7 +160,7 @@
{
int idx;
- if (len <= 0)
+ if (len == 0)
return -1;
for (idx = 0; idx < cctx->ctx_ufunc->uf_args.ga_len; ++idx)
{