diff options
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 { |