From 3d4fafdd662a2ac7267afdaef44bad54302ebe50 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 13 Mar 2020 09:03:15 +1100 Subject: Backport: Using constexpr in UniConversion and CaseConvert. Backport of changeset 8004:7052c60ce1b2. --- win32/ScintillaWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index be4c59d4e..ae4ee839e 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1031,7 +1031,7 @@ void ScintillaWin::EscapeHanja() { // ImmEscapeW() may overwrite uniChar[] with a null terminated string. // So enlarge it enough to Maximum 4 as in UTF-8. - unsigned int const safeLength = UTF8MaxBytes+1; + constexpr size_t safeLength = UTF8MaxBytes + 1; std::string oneChar(safeLength, '\0'); pdoc->GetCharRange(&oneChar[0], currentPos, oneCharLen); -- cgit v1.2.3