From bcbb59dc111cefbe2f5dc32d933efa6022a18b1f Mon Sep 17 00:00:00 2001 From: thebirk Date: Wed, 2 Jan 2019 15:56:35 +0100 Subject: [PATCH] Fixed int_from_arg not consuming argument. --- core/fmt/fmt.odin | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index e8dafb2c7..e358d00e0 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -489,6 +489,10 @@ int_from_arg :: proc(args: []any, arg_index: int) -> (int, int, bool) { } } + if ok { + new_arg_index += 1; + } + return num, new_arg_index, ok; }