summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
Diffstat (limited to 'op.c')
-rw-r--r--op.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/op.c b/op.c
index a4d714758a..55f8c6adcb 100644
--- a/op.c
+++ b/op.c
@@ -10818,7 +10818,10 @@ S_process_special_blocks(pTHX_ I32 floor, const char *const fullname,
sv_setiv(max_nest_sv, max_nest_iv);
}
- if (PL_eval_begin_nest_depth >= max_nest_iv) {
+ /* (UV) below is just to silence a compiler warning, and should be
+ * effectively a no-op, as max_nest_iv will never be negative here.
+ */
+ if (PL_eval_begin_nest_depth >= (UV)max_nest_iv) {
Perl_croak(aTHX_ "Too many nested BEGIN blocks, maximum of %" IVdf " allowed",
max_nest_iv);
}