summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-09-03 19:53:24 -0400
committerDave Brolley <brolley@redhat.com>2009-09-03 19:53:24 -0400
commita5d268f35032292b8f85cc75a316930ed0b95aab (patch)
treedd78d073ab80624478e77eebab3c5e9767524faa /parse.cxx
parent8402bcf68e5321b3459cbbbd27d5111bb184922e (diff)
parentdf56da84549816b15a1f7aea3c9f71de2b2001ad (diff)
downloadsystemtap-steved-a5d268f35032292b8f85cc75a316930ed0b95aab.tar.gz
systemtap-steved-a5d268f35032292b8f85cc75a316930ed0b95aab.tar.xz
systemtap-steved-a5d268f35032292b8f85cc75a316930ed0b95aab.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
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));