Skip to content

Commit

Permalink
Fixed MinGW build.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Feb 20, 2017
1 parent db5e1d9 commit 063450d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/bx/inline/string.inl
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ namespace bx
inline Ty replaceAll(const Ty& _str, const char* _from, const char* _to)
{
Ty str = _str;
int32_t startPos = 0;
const int32_t fromLen = strnlen(_from);
const int32_t toLen = strnlen(_to);
typename Ty::size_type startPos = 0;
const typename Ty::size_type fromLen = strnlen(_from);
const typename Ty::size_type toLen = strnlen(_to);
while ( (startPos = str.find(_from, startPos) ) != Ty::npos)
{
str.replace(startPos, fromLen, _to);
Expand Down

0 comments on commit 063450d

Please sign in to comment.