games/libretro-bluemsx: fix build on powerpc64le
Src/SoundChips/OpenMsxYM2413.cpp:331:10: error: constant expression evaluates to -3 which cannot be narrowed to type 'char' [-Wc++11-narrowing] 7, 3, 0,-3,-7,-3, 0, 3, Since it should also fix build on other architectures with unsigned char, unbreak on aarch64 and riscv64 (untested).
This commit is contained in:
parent
8a252152e3
commit
7f0255f13c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=565317
2 changed files with 11 additions and 3 deletions
|
@ -9,9 +9,6 @@ COMMENT= Port of blueMSX to the libretro API
|
|||
|
||||
LICENSE= GPLv3
|
||||
|
||||
BROKEN_aarch64= error: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
|
||||
BROKEN_riscv64= error: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
|
||||
|
||||
USES= compiler:c++11-lib gmake
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
--- Src/SoundChips/OpenMsxYM2413.cpp.orig 2021-02-15 16:41:14 UTC
|
||||
+++ Src/SoundChips/OpenMsxYM2413.cpp
|
||||
@@ -304,7 +304,7 @@ static const byte lfo_am_table[LFO_AM_TAB_ELEMENTS] =
|
||||
};
|
||||
|
||||
// LFO Phase Modulation table (verified on real YM2413)
|
||||
-static const char lfo_pm_table[8 * 8] =
|
||||
+static const signed char lfo_pm_table[8 * 8] =
|
||||
{
|
||||
// FNUM2/FNUM = 0 00xxxxxx (0x0000)
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
Loading…
Reference in a new issue