File: fix-ftbfs-char.patch

package info (click to toggle)
ball 1.5.0%2Bgit20220524.d85d2dd-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 240,912 kB
  • sloc: cpp: 326,154; ansic: 4,212; python: 2,303; yacc: 1,778; lex: 1,099; xml: 958; sh: 338; javascript: 164; makefile: 98
file content (26 lines) | stat: -rw-r--r-- 900 bytes parent folder | download | duplicates (4)
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
Description: Fix FTBFS on architectures where char is unsigned
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/919172

--- ball-1.5.0+git20180813.37fc53c.orig/include/BALL/DATATYPE/hashGrid.h
+++ ball-1.5.0+git20180813.37fc53c/include/BALL/DATATYPE/hashGrid.h
@@ -32,7 +32,7 @@ namespace BALL
 {
 	namespace __private
 	{
-		extern const char BALL_EXPORT neighbour_table_[27][3];
+		extern const signed char BALL_EXPORT neighbour_table_[27][3];
 	}
 
 	template <typename Item> class HashGrid3;
--- ball-1.5.0+git20180813.37fc53c.orig/source/DATATYPE/hashGrid.C
+++ ball-1.5.0+git20180813.37fc53c/source/DATATYPE/hashGrid.C
@@ -9,7 +9,7 @@ namespace BALL
 {
 	namespace __private
 	{
-		const char neighbour_table_[27][3] =
+		const signed char neighbour_table_[27][3] =
 		{
 			{ 0,  0,  0 }, { 0,  0, -1 }, { 0,  0,  1 },
 			{ 0, -1, -1 }, { 0, -1,  0 }, { 0, -1,  1 },