From a310733b429a99aff14d840f6de663a685917d00 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 28 Feb 2022 23:21:01 +0800 Subject: ... --- src/common/String.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common/String.cpp') 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 #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 { -- cgit v1.2.3