summaryrefslogtreecommitdiff
path: root/functions.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-31 21:06:29 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-31 21:06:29 +0000
commit1e0b30405dd8a9fdd8d3ebf72560a1baecec2387 (patch)
treee41ebfd208c0e69c86a00a548c43c087cc7f5302 /functions.c
parentd3df5203d2355f1677dffa52fc8684901db1152a (diff)
Fix mix :)
Diffstat (limited to 'functions.c')
-rw-r--r--functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.c b/functions.c
index 8770f40..e3987ff 100644
--- a/functions.c
+++ b/functions.c
@@ -530,8 +530,8 @@ fnMix(Array *right)
index[commonrank-1-k] = 0;
index[commonrank-2-k]++;
}
- if(offset < a->size){
- result->arraydata[i*commonsize+offset] = arrayitem(a, offset);
+ if(j < a->size){
+ result->arraydata[i*commonsize+offset] = arrayitem(a, j);
offset++;
index[commonrank-1]++;
}else if(offset < commonsize){