aboutsummaryrefslogtreecommitdiff
path: root/src/common/String.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/String.cpp')
-rw-r--r--src/common/String.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/String.cpp b/src/common/String.cpp
index 22008f6d..1abee273 100644
--- a/src/common/String.cpp
+++ b/src/common/String.cpp
@@ -1,4 +1,5 @@
#include "cru/common/String.h"
+#include <double-conversion/double-conversion.h>
#include "cru/common/Exception.h"
#include "cru/common/StringUtil.h"
@@ -349,7 +350,8 @@ double_conversion::StringToDoubleConverter
double_conversion::StringToDoubleConverter::ALLOW_LEADING_SPACES |
double_conversion::StringToDoubleConverter::ALLOW_TRAILING_SPACES |
double_conversion::StringToDoubleConverter::
- ALLOW_CASE_INSENSIBILITY,
+ ALLOW_CASE_INSENSIBILITY |
+ double_conversion::StringToDoubleConverter::ALLOW_TRAILING_JUNK,
0.0, NAN, "infinity", "nan");
int StringView::Compare(const StringView& other) const {