summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-12 23:02:24 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-12 23:02:24 -0400
commit9dc3dea276c2cc045a77dfbf2734fe85207c3452 (patch)
treeb427c3bbc2cafcb2f5890774ee2b0932752e18c4 /test.toc
parentec2f3f213e4abce5cef3131673d969ca9d3c534c (diff)
fixed problems with varargs
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index 7ffb758..8709a64 100644
--- a/test.toc
+++ b/test.toc
@@ -8,7 +8,7 @@ sum ::= fn(x: ..) int {
total := 0;
n := 0;
for a, i := x {
- total += a + i / i;
+ total += a + i - i + 1;
n += 1;
}
total - n
@@ -18,7 +18,7 @@ sumc ::= fn(x:: ..) int {
total := 0;
n := 0;
for a, i := x {
- total += a + i / i;
+ total += a + i - i + 1;
n += 1;
}
total - n