summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorglenda <glenda@9front>2022-10-22 16:45:32 +0000
committerglenda <glenda@9front>2022-10-22 16:45:32 +0000
commita82186dab48c234c507693b166acd7c13433864a (patch)
treeeb6db255c93b1e6278e0e833e915c4c85372c84f /error.c
parenta3b635de1753ed4ce73dabdc7e2c24dfdf77891e (diff)
Atomic reference counting
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/error.c b/error.c
index 4d04696..a0e2a1b 100644
--- a/error.c
+++ b/error.c
@@ -1,6 +1,7 @@
#include <u.h>
#include <libc.h>
#include <bio.h>
+#include <thread.h>
#include "apl9.h"
@@ -21,7 +22,7 @@ newerrorguard(Array *codes, Statement *guard)
eg->frame = dupdfnframe(fr);
}
- for(int i = 0; i < GetSize(codes); i++)
+ for(int i = 0; i < codes->size; i++)
eg->code |= (1<<codes->intdata[i]);
return eg;