summaryrefslogtreecommitdiff
path: root/hybrids.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-02-08 16:03:10 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-02-08 16:03:10 +0000
commitc6e1c83f93f63a061f0804821ed29c656da38f28 (patch)
tree8f3b8863d9db2d79722a4ec104bb2eeb807f87e0 /hybrids.c
parent511ae2c1879676568b2f11312c38a66b2caa21c0 (diff)
Add work in progress concurrency. Might break stuff!
Diffstat (limited to 'hybrids.c')
-rw-r--r--hybrids.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hybrids.c b/hybrids.c
index e7f7f4b..9dc0a43 100644
--- a/hybrids.c
+++ b/hybrids.c
@@ -95,7 +95,7 @@ fnReplicateFirst(Array *left, Array *right)
}
if(result->type == AtypeArray)
for(int j = 0; j < npos*cellsize; j++)
- incref(result->arraydata[to*cellsize+j]);
+ incarrayref(result->arraydata[to*cellsize+j]);
}
freearray(fill);
freearray(left);
@@ -153,7 +153,7 @@ fnExpandFirst(Array *left, Array *right)
}
if(result->type == AtypeArray)
for(int j = 0; j < npos*cellsize; j++)
- incref(result->arraydata[to*cellsize+j]);
+ incarrayref(result->arraydata[to*cellsize+j]);
if(right->shape[0] != 1 && !neg)
from++;
}