summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc
index e1cfa736..4451a543 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 {