summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/parse.cxx b/parse.cxx
index a2e2b656..bfd7600f 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -754,9 +754,8 @@ lexer::scan (bool wildcard)
idx <= session.args.size()); // prevent overflow
if (idx == 0 ||
idx-1 >= session.args.size())
- throw parse_error ("command line argument index " + lex_cast<string>(idx)
- + " out of range [1-" + lex_cast<string>(session.args.size()) + "]", n);
-
+ throw parse_error ("command line argument index " + lex_cast(idx)
+ + " out of range [1-" + lex_cast(session.args.size()) + "]", n);
string arg = session.args[idx-1];
if (c == '$') input_put (arg);
else input_put (lex_cast_qstring (arg));