aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-09-10 15:00:19 +0100
committergingerBill <bill@gingerbill.org>2020-09-10 15:00:19 +0100
commitc1149dbdeea1803267acd50c97a0070304b1b0c3 (patch)
tree54576c90361640b44dd6bcb643cf71f226aee478 /src/check_expr.cpp
parent7e625f6ee71e48a01137ac3e918b747b29cf681e (diff)
Update math and math/linalg; add "pure_none" calling convention
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
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");
}
}