aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorthebirk <pingnor@gmail.com>2019-01-02 15:56:35 +0100
committerthebirk <pingnor@gmail.com>2019-01-02 15:56:35 +0100
commitbcbb59dc111cefbe2f5dc32d933efa6022a18b1f (patch)
tree6b7cbe08ce023ada8a0b0278d2951bdd080c1468 /core
parentc1ec45dc0a11bd2b30d88d18d2fe06edc6fd89d4 (diff)
Fixed int_from_arg not consuming argument.
Diffstat (limited to 'core')
-rw-r--r--core/fmt/fmt.odin4
1 files changed, 4 insertions, 0 deletions
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;
}