mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Warning fixes
This commit is contained in:
parent
9fabf0f7ee
commit
1b171d5b20
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ intptr StringView::IndexOf(char c, int64 startIdx) const
|
||||||
auto ptr = mPtr;
|
auto ptr = mPtr;
|
||||||
for (int64 i = startIdx; i < mLength; i++)
|
for (int64 i = startIdx; i < mLength; i++)
|
||||||
if (ptr[i] == c)
|
if (ptr[i] == c)
|
||||||
return i;
|
return (intptr)i;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -823,7 +823,7 @@ intptr StringImpl::IndexOf(char c, int64 startIdx) const
|
||||||
auto ptr = GetPtr();
|
auto ptr = GetPtr();
|
||||||
for (int64 i = startIdx; i < mLength; i++)
|
for (int64 i = startIdx; i < mLength; i++)
|
||||||
if (ptr[i] == c)
|
if (ptr[i] == c)
|
||||||
return i;
|
return (intptr)i;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue