From a1381347c9867365c5d6938cd545a294b13622e7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 15 Oct 2020 23:42:42 +0200 Subject: [PATCH] Fix harmless signed/unsigned warning in wxTextInputStream Just fix a warning about assigning -1 to a size_t variable introduced in the recent commit 1e435d2347 (Fix wxTextInputStream incorrectly decoding multibyte fallback encodings, 2020-09-28). No real changes. --- src/common/txtstrm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 1332bb3cf0..a16a8de67a 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -140,7 +140,7 @@ wxChar wxTextInputStream::GetChar() // recognized that it's not valid UTF-8 and switched to fallback. // We don't know how long is the first character or if it's decoded // as 1 or 2 wchar_t characters, so we need to start with 1 byte again. - inlen = -1; + inlen = static_cast(-1); break; #if SIZEOF_WCHAR_T == 2