From 36357fb0e0c13d042477d1c2f80427635ba38cbb Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Sat, 16 Sep 2023 23:40:10 +0200 Subject: [PATCH] Fix ustring on Windows --- src/xtd.core/src/xtd/ustring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;