Package: spaln / 3.0.2+dfsg-2

portability.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Fix portability issue
Bug-Debian: https://bugs.debian.org/976908
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 09 Dec 2020 11:35:15 +0100

--- a/src/codepot.h
+++ b/src/codepot.h
@@ -27,8 +27,8 @@ class	ExinPot;
 struct SGPT2 {
 	STYPE   sig5;
 	STYPE   sig3;
-	char   phs5;
-	char   phs3;
+	signed char   phs5;
+	signed char   phs3;
 };
 
 struct SGPT6 {
@@ -38,11 +38,11 @@ struct SGPT6 {
 	STYPE   sigT;
 	STYPE   sigE;
 	STYPE   sigI;
-	char   phs5;
-	char   phs3;
+	signed char   phs5;
+	signed char   phs3;
 };
 
-static	const	SGPT2	ZeroSGPT2 = {0, 0, -2, -2};
+static	const	SGPT2	ZeroSGPT2 = {0, 0, (signed char)-2, (signed char)-2};
 static	const	SGPT6	ZeroSGPT6 = {0, 0, 0, 0, 0, 0, -2, -2};
 static	const	float	rlmt_quant = 0.8;