parser: reduce max_expr_level to 310 (due to more limited stack size on windows)

pull/12992/head
Delyan Angelov 2021-12-27 20:02:50 +02:00
parent 34e175a343
commit 14648fa41e
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ fn (mut p Parser) assign_stmt() ast.Stmt {
return p.partial_assign_stmt(exprs, comments)
}
const max_expr_level = 2500
const max_expr_level = 310
fn (mut p Parser) check_undefined_variables(exprs []ast.Expr, val ast.Expr) ? {
p.expr_level++

File diff suppressed because one or more lines are too long