From a82186dab48c234c507693b166acd7c13433864a Mon Sep 17 00:00:00 2001 From: glenda Date: Sat, 22 Oct 2022 16:45:32 +0000 Subject: Atomic reference counting --- concurrency.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'concurrency.c') diff --git a/concurrency.c b/concurrency.c index b45ee08..1c73099 100644 --- a/concurrency.c +++ b/concurrency.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "apl9.h" @@ -161,7 +162,7 @@ Retry: /* Check if the new message is OK according to 'match' */ prev = m; Array *matchres = runfunc(match, nil, m->contents); - if(GetRank(matchres) != 1 || GetSize(matchres) != 2){ + if(GetRank(matchres) != 1 || matchres->size != 2){ freearray(matchres); goto Retry; } -- cgit v1.2.3