| Server IP : 82.208.35.60 / Your IP : 216.73.217.116 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/audio/libsidplay/files/ |
Upload File : |
samples.cpp:80:2: error: constant expression evaluates to 128 which cannot be narrowed to type 'sbyte' (aka 'signed char') [-Wc++11-narrowing]
0x80,0x91,0xa2,0xb3,0xc4,0xd5,0xe6,0xf7,
^~~~
samples.cpp:80:2: note: insert an explicit cast to silence this issue
0x80,0x91,0xa2,0xb3,0xc4,0xd5,0xe6,0xf7,
^~~~
static_cast<sbyte>( )
--- src/samples.cpp.orig 2021-05-22 05:06:11 UTC
+++ src/samples.cpp
@@ -75,7 +75,7 @@ struct sampleChannel
sampleChannel ch4, ch5;
-const sbyte galwayNoiseTab1[16] =
+const ubyte galwayNoiseTab1[16] =
{
(sbyte)0x80,(sbyte)0x91,(sbyte)0xa2,(sbyte)0xb3,(sbyte)0xc4,(sbyte)0xd5,(sbyte)0xe6,(sbyte)0xf7,
0x08,0x19,0x2a,0x3b,0x4c,0x5d,0x6e,0x7f
@@ -84,7 +84,7 @@ const sbyte galwayNoiseTab1[16] =
ubyte galwayNoiseVolTab[16];
sbyte galwayNoiseSamTab[16];
-const sbyte sampleConvertTab[16] =
+const ubyte sampleConvertTab[16] =
{
// (sbyte)0x81,(sbyte)0x99,(sbyte)0xaa,(sbyte)0xbb,(sbyte)0xcc,(sbyte)0xdd,(sbyte)0xee,(sbyte)0xff,
// 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x7f