From c1149dbdeea1803267acd50c97a0070304b1b0c3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 10 Sep 2020 15:00:19 +0100 Subject: Update math and math/linalg; add "pure_none" calling convention --- src/check_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_expr.cpp') diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 6279967ad..3e5dd58f5 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -7655,7 +7655,7 @@ ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *call, Ast *pr { if (c->curr_proc_calling_convention == ProcCC_Pure) { - if (pt->kind == Type_Proc && pt->Proc.calling_convention != ProcCC_Pure) { + if (pt->kind == Type_Proc && pt->Proc.calling_convention != ProcCC_Pure && pt->Proc.calling_convention != ProcCC_PureNone) { error(call, "Only \"pure\" procedure calls are allowed within a \"pure\" procedure"); } } -- cgit v1.2.3