summaryrefslogtreecommitdiff
path: root/concurrency.c
diff options
context:
space:
mode:
Diffstat (limited to 'concurrency.c')
-rw-r--r--concurrency.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/concurrency.c b/concurrency.c
index b45ee08..1c73099 100644
--- a/concurrency.c
+++ b/concurrency.c
@@ -2,6 +2,7 @@
#include <libc.h>
#include <bio.h>
#include <tos.h>
+#include <thread.h>
#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;
}