summaryrefslogtreecommitdiff
path: root/src/expand/format_args.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/expand/format_args.cpp')
-rw-r--r--src/expand/format_args.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/format_args.cpp b/src/expand/format_args.cpp
index 6cc81af6..d79fd9d5 100644
--- a/src/expand/format_args.cpp
+++ b/src/expand/format_args.cpp
@@ -383,7 +383,7 @@ namespace {
if( next_free == n_free ) {
ERROR(sp, E0000, "Not enough arguments passed, expected at least " << n_free+1);
}
- args.prec = next_free + n_named;
+ args.prec = next_free;
next_free ++;
}
else if( ::std::isdigit(*s) ) {
@@ -447,7 +447,7 @@ namespace {
if( next_free == n_free ) {
ERROR(sp, E0000, "Not enough arguments passed, expected at least " << n_free+1);
}
- index = next_free + n_named;
+ index = next_free;
next_free ++;
}