mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
Fixed int_from_arg not consuming argument.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user