We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db4b25a commit e390082Copy full SHA for e390082
Siv3D/src/Siv3D/ParseFloat/SivParseFloat.cpp
@@ -27,7 +27,7 @@ namespace s3d
27
28
static double ParseDouble(StringView s)
29
{
30
- while (IsSpace(s.front()))
+ while ((not s.isEmpty()) && IsSpace(s.front()))
31
32
s.remove_prefix(1);
33
}
@@ -46,7 +46,7 @@ namespace s3d
46
template <class FloatType>
47
static Optional<FloatType> ParseFloatingPointOpt(StringView s) noexcept
48
49
50
51
52
0 commit comments