From a811d270e8259c51e78878a2f04f962555f9cf90 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 12 Aug 2022 15:23:12 +0300 Subject: [PATCH] graphics/bonzomatic: fix build on arm* PR: 265405 Submitted by: fuz@fuz.su --- graphics/bonzomatic/files/patch-src_main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 graphics/bonzomatic/files/patch-src_main.cpp diff --git a/graphics/bonzomatic/files/patch-src_main.cpp b/graphics/bonzomatic/files/patch-src_main.cpp new file mode 100644 index 000000000000..92fc12ac2280 --- /dev/null +++ b/graphics/bonzomatic/files/patch-src_main.cpp @@ -0,0 +1,11 @@ +--- src/main.cpp.orig 2022-07-08 20:07:06 UTC ++++ src/main.cpp +@@ -503,7 +503,7 @@ int main( int argc, const char * argv[] ) + if ( !consumed && Renderer::keyEventBuffer[ i ].character ) + { + char utf8[ 5 ] = { 0,0,0,0,0 }; +- wchar_t utf16[ 2 ] = { Renderer::keyEventBuffer[ i ].character, 0 }; ++ wchar_t utf16[ 2 ] = { static_cast(Renderer::keyEventBuffer[ i ].character), 0 }; + Scintilla::UTF8FromUTF16( utf16, 1, utf8, 4 * sizeof( char ) ); + mShaderEditor.AddCharUTF( utf8, (unsigned int) strlen( utf8 ) ); + }