summaryrefslogtreecommitdiff
path: root/libstd/varargs.myr
diff options
context:
space:
mode:
Diffstat (limited to 'libstd/varargs.myr')
-rw-r--r--libstd/varargs.myr5
1 files changed, 4 insertions, 1 deletions
diff --git a/libstd/varargs.myr b/libstd/varargs.myr
index bcaac76..99d04d3 100644
--- a/libstd/varargs.myr
+++ b/libstd/varargs.myr
@@ -19,7 +19,10 @@ type valist = byte#
* force varargs onto the stack regardless.
*/
const vastart = {args
- -> args castto(valist)
+ var ap, dump : byte#
+
+ (dump, ap) = vanext(args castto(valist))
+ -> ap
}
generic vanext = {ap -> (@a, valist)