From 9a400bd33f0cb4f322de4208bb7159673a399521 Mon Sep 17 00:00:00 2001 From: Mitchell Foral Date: Thu, 1 Dec 2022 17:27:09 +1100 Subject: Change release compilation optimization option to favour speed over space. -O2 for MSVC and -O3 for gcc and clang. Change code in Editor.cxx to avoid a warning that occurs with gcc -O3. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 1fb6d960d..72a8a4bd8 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5872,7 +5872,7 @@ void Editor::StyleSetMessage(Message iMessage, uptr_t wParam, sptr_t lParam) { if (!(classified & UTF8MaskInvalid)) { // valid UTF-8 int len = classified & UTF8MaskWidth; - while (len--) + for (int i=0; i