summaryrefslogtreecommitdiff
path: root/tests/features/test_varargs.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features/test_varargs.zc')
-rw-r--r--tests/features/test_varargs.zc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/features/test_varargs.zc b/tests/features/test_varargs.zc
index b06f66e..376a825 100644
--- a/tests/features/test_varargs.zc
+++ b/tests/features/test_varargs.zc
@@ -9,11 +9,11 @@ test "Variadic Sum" {
}
fn sum_all(count: int, ...) -> int {
- var total = 0;
- var ap: va_list;
+ let total = 0;
+ let ap: va_list;
va_start(ap, count);
- for (var i = 0; i < count; i = i + 1) {
+ for (let i = 0; i < count; i = i + 1) {
total = total + va_arg(ap, int);
}