From 0f7cfd46ef2d277f5f82e34a2852c75212d75261 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 12 Dec 2018 20:34:46 +0000 Subject: Fix conversion issues by replacing ConvToInt with ConvToNum. The former was a thin wrapper around atol and brought with it all of the weird parsing logic of atol which is almost never what is actually wanted. It also almost never returned the numeric type which is actually wanted which can cause weird issues when casting. --- src/base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base.cpp') diff --git a/src/base.cpp b/src/base.cpp index f698bad2e..8749aee8e 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -278,7 +278,7 @@ std::string LocalIntExt::serialize(SerializeFormat format, const Extensible* con void LocalIntExt::unserialize(SerializeFormat format, Extensible* container, const std::string& value) { if (format != FORMAT_NETWORK) - set(container, ConvToInt(value)); + set(container, ConvToNum(value)); } intptr_t LocalIntExt::get(const Extensible* container) const -- cgit v1.3.1-10-gc9f91