summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-04 12:07:27 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-04 12:07:27 -0500
commit39e5e4fbb83188eafde2c7c5822b33ff451fadd8 (patch)
tree08f8946c7ffbc0f9e2458f9c364a7a8f25451c6e /std
parent9dc97819d38b1a63935a4909b246c88f960e0899 (diff)
slightly improved infer error message; still needs work
Diffstat (limited to 'std')
-rw-r--r--std/arr.toc2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/arr.toc b/std/arr.toc
index 779de48..c973777 100644
--- a/std/arr.toc
+++ b/std/arr.toc
@@ -20,7 +20,7 @@ resv ::= fn(t ::=, a : &Arr(t), n: int) {
add ::= fn(t ::=, a : &Arr(t), x : t) {
if a.data.len >= a.cap {
- resv(&a, a.cap * 2 + 2);
+ resv(a, a.cap * 2 + 2);
}
a.data.len += 1;
a.data[a.data.len-1] = x;