From 063450d644b9e574f94bfe87b8ee7190937c819f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 19 Feb 2017 18:16:15 -0800 Subject: [PATCH] Fixed MinGW build. --- include/bx/inline/string.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/bx/inline/string.inl b/include/bx/inline/string.inl index 10e27ec..7b6f650 100644 --- a/include/bx/inline/string.inl +++ b/include/bx/inline/string.inl @@ -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);