Skip to content

Commit

Permalink
[共通] fix #1226
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Apr 26, 2024
1 parent db4b25a commit e390082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Siv3D/src/Siv3D/ParseFloat/SivParseFloat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace s3d

static double ParseDouble(StringView s)
{
while (IsSpace(s.front()))
while ((not s.isEmpty()) && IsSpace(s.front()))
{
s.remove_prefix(1);
}
Expand All @@ -46,7 +46,7 @@ namespace s3d
template <class FloatType>
static Optional<FloatType> ParseFloatingPointOpt(StringView s) noexcept
{
while (IsSpace(s.front()))
while ((not s.isEmpty()) && IsSpace(s.front()))
{
s.remove_prefix(1);
}
Expand Down

0 comments on commit e390082

Please sign in to comment.