diff options
author | crupest <crupest@outlook.com> | 2022-02-28 23:21:01 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-28 23:21:01 +0800 |
commit | a310733b429a99aff14d840f6de663a685917d00 (patch) | |
tree | b2457142a4df70589dc036061ff7dc005750b62b /src/common | |
parent | 5b891e26f0510d8bd62c01a9e03ca677341cf74f (diff) | |
download | cru-a310733b429a99aff14d840f6de663a685917d00.tar.gz cru-a310733b429a99aff14d840f6de663a685917d00.tar.bz2 cru-a310733b429a99aff14d840f6de663a685917d00.zip |
...
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/String.cpp | 4 |
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 { |