fix build with clang6; from freebsD
This commit is contained in:
parent
b90c3360d2
commit
4c93668c0c
25
audio/libsidplay/patches/patch-src_samples_cpp
Normal file
25
audio/libsidplay/patches/patch-src_samples_cpp
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-src_samples_cpp,v 1.1 2018/04/10 16:56:20 jasper Exp $
|
||||
|
||||
error: constant expression evaluates to 208 which cannot be narrowed to type 'sbyte' (aka 'signed char')
|
||||
|
||||
Index: src/samples.cpp
|
||||
--- src/samples.cpp.orig
|
||||
+++ src/samples.cpp
|
||||
@@ -77,7 +77,7 @@ sampleChannel ch4, ch5;
|
||||
|
||||
const sbyte galwayNoiseTab1[16] =
|
||||
{
|
||||
- 0x80,0x91,0xa2,0xb3,0xc4,0xd5,0xe6,0xf7,
|
||||
+ (sbyte)0x80,(sbyte)0x91,(sbyte)0xa2,(sbyte)0xb3,(sbyte)0xc4,(sbyte)0xd5,(sbyte)0xe6,(sbyte)0xf7,
|
||||
0x08,0x19,0x2a,0x3b,0x4c,0x5d,0x6e,0x7f
|
||||
};
|
||||
|
||||
@@ -88,7 +88,7 @@ const sbyte sampleConvertTab[16] =
|
||||
{
|
||||
// 0x81,0x99,0xaa,0xbb,0xcc,0xdd,0xee,0xff,
|
||||
// 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x7f
|
||||
- 0x81,0x90,0xa0,0xb0,0xc0,0xd0,0xe0,0xf0,
|
||||
+ (sbyte)0x81,(sbyte)0x90,(sbyte)0xa0,(sbyte)0xb0,(sbyte)0xc0,(sbyte)0xd0,(sbyte)0xe0,(sbyte)0xf0,
|
||||
0x00,0x10,0x20,0x30,0x40,0x50,0x60,0x70
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user