diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-03 06:11:33 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:36 -0400 |
commit | 738287ef7059e34c2f3c894aa3b1f7da3e059975 (patch) | |
tree | 0620fe4354be6268d6de9acd97698b12935690f0 /src/xpath.cc | |
parent | c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0 (diff) | |
download | ledger-738287ef7059e34c2f3c894aa3b1f7da3e059975.tar.gz ledger-738287ef7059e34c2f3c894aa3b1f7da3e059975.tar.bz2 ledger-738287ef7059e34c2f3c894aa3b1f7da3e059975.zip |
Merged ../commodity_pool
Diffstat (limited to 'src/xpath.cc')
-rw-r--r-- | src/xpath.cc | 2 |
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)); |