File: signed_char_neighbour_table.patch

package info (click to toggle)
ugene 51.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 125,712 kB
  • sloc: cpp: 637,632; xml: 212,751; ansic: 81,474; javascript: 5,416; sh: 1,204; python: 771; makefile: 36
file content (28 lines) | stat: -rw-r--r-- 959 bytes parent folder | download | duplicates (2)
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
Description: indicating we use signed char, so that we don't depend on the
 default choice of the implementation
Author: Pierre Gruet <pgt@debian.org>
Forwarded: https://github.com/ugeneunipro/ugene/issues/1682
Last-Update: 2024-10-04

--- a/src/plugins_3rdparty/ball/src/include/BALL/DATATYPE/hashGrid.h
+++ b/src/plugins_3rdparty/ball/src/include/BALL/DATATYPE/hashGrid.h
@@ -37,7 +37,7 @@
 {
 	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;
--- a/src/plugins_3rdparty/ball/src/source/DATATYPE/hashGrid.cpp
+++ b/src/plugins_3rdparty/ball/src/source/DATATYPE/hashGrid.cpp
@@ -9,7 +9,7 @@
 {
 	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 },