diff options
| author | John Wiegley <johnw@newartisans.com> | 2007-05-03 06:10:32 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:36 -0400 |
| commit | f9f24fab933266ab8e12da7eef4cc2a906f77350 (patch) | |
| tree | 4d4ef97c450a2679bc70726b3758b3c0c234def9 /src/value.cc | |
| parent | f0508a9f86be63fc4f98e9943ce2f226339e6309 (diff) | |
| download | ledger-f9f24fab933266ab8e12da7eef4cc2a906f77350.tar.gz ledger-f9f24fab933266ab8e12da7eef4cc2a906f77350.tar.bz2 ledger-f9f24fab933266ab8e12da7eef4cc2a906f77350.zip | |
Added code to use boost::lexical_cast<>.
Diffstat (limited to 'src/value.cc')
| -rw-r--r-- | src/value.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc index d5d4e655..b181df8f 100644 --- a/src/value.cc +++ b/src/value.cc @@ -1647,7 +1647,7 @@ void value_t::in_place_cast(type_t cast_type) break; } if (alldigits) { - long temp = std::atol((*(string **) data)->c_str()); + long temp = lexical_cast<long>((*(string **) data)->c_str()); destroy(); *(long *) data = temp; } else { |
