summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--translate.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx
index e6c8cde9..8c624a2f 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -1501,7 +1501,7 @@ c_unparser::emit_function (functiondecl* v)
// or 0...N (if we're called from another function). Incoming parameters are already
// stored in c->locals[c->nesting+1]. See also ::emit_common_header() for more.
- o->newline() << "if (unlikely (c->nesting+1 > MAXNESTING)) {";
+ o->newline() << "if (unlikely (c->nesting+1 >= MAXNESTING)) {";
o->newline(1) << "c->last_error = \"MAXNESTING exceeded\";";
o->newline() << "return;";
o->newline(-1) << "} else {";