diff options
author | tobik <tobik@FreeBSD.org> | 2018-08-25 09:24:40 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2018-08-25 09:24:40 +0800 |
commit | 78e57217b26f59d4ce515caf12c9248fe13321b0 (patch) | |
tree | b9a53efbc296211a6eee0dedbf22e166f949d425 /emulators | |
parent | e41a649f71044fbdb31c48441f8f6b79abc366d5 (diff) | |
download | freebsd-ports-gnome-78e57217b26f59d4ce515caf12c9248fe13321b0.tar.gz freebsd-ports-gnome-78e57217b26f59d4ce515caf12c9248fe13321b0.tar.zst freebsd-ports-gnome-78e57217b26f59d4ce515caf12c9248fe13321b0.zip |
emulators/quasi88: Fix build with Clang 6
src/fmgen/psg.cpp:121:37: error: constant expression evaluates to -1 which cannot be narrowed to type 'uint8' (aka 'unsigned char') [-Wc++11-narrowing]
static uint8 table3[4] = { 0, 1, -1, 0 };
^~
http://beefy11.nyi.freebsd.org/data/head-i386-default/p477468_s337991/logs/quasi88-0.6.4.log
PR: 230869
Submitted by: 1wkmmr@gmail.com
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/quasi88/files/patch-src_fmgen_psg.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/emulators/quasi88/files/patch-src_fmgen_psg.cpp b/emulators/quasi88/files/patch-src_fmgen_psg.cpp new file mode 100644 index 000000000000..d036baf19a9c --- /dev/null +++ b/emulators/quasi88/files/patch-src_fmgen_psg.cpp @@ -0,0 +1,15 @@ +src/fmgen/psg.cpp:121:37: error: constant expression evaluates to -1 which cannot be narrowed to type 'uint8' (aka 'unsigned char') [-Wc++11-narrowing] + static uint8 table3[4] = { 0, 1, -1, 0 }; + ^~ + +--- src/fmgen/psg.cpp.orig 2003-09-05 15:06:43 UTC ++++ src/fmgen/psg.cpp +@@ -118,7 +118,7 @@ void PSG::MakeEnvelopTable() + 2,2, 2,0, 2,1, 2,3, 1,1, 1,3, 1,2, 1,0, + }; + static uint8 table2[4] = { 0, 0, 31, 31 }; +- static uint8 table3[4] = { 0, 1, -1, 0 }; ++ static uint8 table3[4] = { 0, 1, 255, 0 }; + + uint* ptr = enveloptable[0]; + |