diff --git a/src/xtd.core/src/xtd/ustring.cpp b/src/xtd.core/src/xtd/ustring.cpp index 772b4c47ef12..e1d32ed3e531 100644 --- a/src/xtd.core/src/xtd/ustring.cpp +++ b/src/xtd.core/src/xtd/ustring.cpp @@ -901,7 +901,7 @@ ustring ustring::replace(const ustring& old_string, const ustring& new_string) c auto result = *this; auto old_size = old_string.length(); auto new_size = new_string.length(); - auto index = 0ul; + auto index = 0_sz; while (true) { index = result.find(old_string, index); if (index == npos) break;