Fix build on clang6
ok bentley@
This commit is contained in:
parent
7bd90312b2
commit
7bd67aeced
16
games/amoebax/patches/patch-src_NewHighScoreState_cxx
Normal file
16
games/amoebax/patches/patch-src_NewHighScoreState_cxx
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-src_NewHighScoreState_cxx,v 1.1 2018/04/15 21:56:25 bcallah Exp $
|
||||
|
||||
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 (code & 0x7f)), '\0'};
|
||||
std::string::size_type characterPos =
|
||||
m_CursorValues.find (std::string (character));
|
||||
if ( std::string::npos != characterPos )
|
Loading…
Reference in New Issue
Block a user