Just one static_cast to add.
OK?

~Brian

Index: patches/patch-src_NewHighScoreState_cxx
===================================================================
RCS file: patches/patch-src_NewHighScoreState_cxx
diff -N patches/patch-src_NewHighScoreState_cxx
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_NewHighScoreState_cxx	15 Apr 2018 21:26:31 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+clang6 fix
+
+Index: src/NewHighScoreState.cxx
+--- src/NewHighScoreState.cxx.orig
++++ src/NewHighScoreState.cxx
+@@ -396,7 +396,7 @@ NewHighScoreState::unicodeCharacterPressed (uint16_t c
+     // FIXME: We are only interessted with ASCII values.
+     if ( 0 == (code & 0xff80) )
+     {
+-        char character[2] = {toupper (static_cast<char>(code & 0x7f)), '\0'};
++        char character[2] = {static_cast<char>(toupper (static_cast<char>(code & 0x7f))), '\0'};
+         std::string::size_type characterPos =
+             m_CursorValues.find (std::string (character));
+         if ( std::string::npos != characterPos )

Reply via email to