summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2024-02-19 10:13:26 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2024-02-19 10:13:26 +0000
commitc67dae80fee02f8b4f1d5cbfe9ba486d5ef40a54 (patch)
tree6f2599f2d8ca63ca1d8ddf43d75da0275b6d5004 /array.c
parent79ab1a4223d53bbdbffc55ae7f9740d953c57945 (diff)
Add a simple monadic ⎕C to make Karl's expression runHEADfront
Diffstat (limited to 'array.c')
-rw-r--r--array.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/array.c b/array.c
index 71c35f6..41eef5e 100644
--- a/array.c
+++ b/array.c
@@ -319,7 +319,7 @@ comparearray(Array *a, Array *b, int checkshapes)
}
for(i = 0; i < a->size && i < b->size; i++){
- int sub = 0;
+ int sub;
switch(GetType(a)){
case AtypeInt:
sub = a->intdata[i] > b->intdata[i] ? 1 : a->intdata[i] == b->intdata[i] ? 0 : -1;
@@ -381,7 +381,6 @@ fillelement(Array *a)
default:
print("Can't make fill element of array type %d\n", GetType(a));
exits(nil);
- return 0;
}
}