summaryrefslogtreecommitdiff
path: root/src/xpath.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-03 06:11:33 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:36 -0400
commit738287ef7059e34c2f3c894aa3b1f7da3e059975 (patch)
tree0620fe4354be6268d6de9acd97698b12935690f0 /src/xpath.cc
parentc59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0 (diff)
downloadledger-738287ef7059e34c2f3c894aa3b1f7da3e059975.tar.gz
ledger-738287ef7059e34c2f3c894aa3b1f7da3e059975.tar.bz2
ledger-738287ef7059e34c2f3c894aa3b1f7da3e059975.zip
Merged ../commodity_pool
Diffstat (limited to 'src/xpath.cc')
-rw-r--r--src/xpath.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xpath.cc b/src/xpath.cc
index fd574cee..86b0c1c4 100644
--- a/src/xpath.cc
+++ b/src/xpath.cc
@@ -654,7 +654,7 @@ xpath_t::parse_value_term(std::istream& in, unsigned short tflags) const
int id = -1;
if (std::isdigit(ident[0])) {
node.reset(new op_t(op_t::ARG_INDEX));
- node->arg_index = std::atol(ident.c_str());
+ node->arg_index = lexical_cast<unsigned int>(ident.c_str());
}
else if ((id = document_t::lookup_builtin_id(ident)) != -1) {
node.reset(new op_t(op_t::NODE_ID));