File 0002-Use-signed-values-instead-of-potentially-unsigned-li.patch of Package deadbeef
From d12c50afeed29f8fd7e18976f0d114309ad25db4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Thu, 2 Nov 2017 20:09:00 +0100
Subject: [PATCH 2/3] Use signed values instead of potentially unsigned
literals
On archs where char is unsigned, '\x80' is interpreted as 128, which
can not be converted to a signed char value.
---
plugins/sid/sidplay-libs/libsidplay/src/xsid/xsid.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/plugins/sid/sidplay-libs/libsidplay/src/xsid/xsid.cpp b/plugins/sid/sidplay-libs/libsidplay/src/xsid/xsid.cpp
index 29b5c909..a55ae2c4 100644
--- a/plugins/sid/sidplay-libs/libsidplay/src/xsid/xsid.cpp
+++ b/plugins/sid/sidplay-libs/libsidplay/src/xsid/xsid.cpp
@@ -83,7 +83,11 @@ const int8_t XSID::sampleConvertTable[16] =
*/
const int8_t XSID::sampleConvertTable[16] =
{
+#if 1
+ -128, -108, -87, -68, -50, -31, -14, 3,
+#else
'\x80', '\x94', '\xa9', '\xbc', '\xce', '\xe1', '\xf2', '\x03',
+#endif
'\x1b', '\x2a', '\x3b', '\x49', '\x58', '\x66', '\x73', '\x7f'
};
--
2.14.3