summaryrefslogtreecommitdiff
path: root/src/xpath.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-03 06:10:32 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:36 -0400
commitf9f24fab933266ab8e12da7eef4cc2a906f77350 (patch)
tree4d4ef97c450a2679bc70726b3758b3c0c234def9 /src/xpath.cc
parentf0508a9f86be63fc4f98e9943ce2f226339e6309 (diff)
downloadledger-f9f24fab933266ab8e12da7eef4cc2a906f77350.tar.gz
ledger-f9f24fab933266ab8e12da7eef4cc2a906f77350.tar.bz2
ledger-f9f24fab933266ab8e12da7eef4cc2a906f77350.zip
Added code to use boost::lexical_cast<>.
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 1dabd871..a7e1e661 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));