[*] Fix: AuParse parse ints should fail on an empty/null/0-length range instead of parsing nothing and returning true
This commit is contained in:
parent
3c846a2ea7
commit
2274b7f624
@ -204,6 +204,11 @@ namespace Aurora::Parse
|
||||
|
||||
auto itr = begin;
|
||||
|
||||
if (begin == end)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if constexpr (AuIsSame_v<T, AuSInt>)
|
||||
{
|
||||
if (itr != end)
|
||||
@ -271,6 +276,11 @@ namespace Aurora::Parse
|
||||
|
||||
auto itr = begin;
|
||||
|
||||
if (begin == end)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if constexpr (AuIsSame_v<T, AuSInt>)
|
||||
{
|
||||
if (itr != end)
|
||||
|
Loading…
Reference in New Issue
Block a user