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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
Author: Lukas Geyer <lukas@debian.org>
Description: Made all score variables long int.
Bugs: #192902
--- sjeng-11.2.orig/ttable.c
+++ sjeng-11.2/ttable.c
@@ -110,7 +110,7 @@
}
-void QStoreTT(int score, int alpha, int beta, int best)
+void QStoreTT(long score, long alpha, long beta, int best)
{
unsigned long index;
@@ -134,7 +134,7 @@
return;
}
-void StoreTT(int score, int alpha, int beta, int best, int threat, int depth)
+void StoreTT(long score, long alpha, long beta, int best, int threat, int depth)
{
unsigned long index;
@@ -216,7 +216,7 @@
return;
}
-void LearnStoreTT(int score, unsigned nhash, unsigned hhash, int tomove, int best, int depth)
+void LearnStoreTT(long score, unsigned nhash, unsigned hhash, int tomove, int best, int depth)
{
unsigned long index;
@@ -242,7 +242,7 @@
}
-int ProbeTT(int *score, int alpha, int beta, int *best, int *threat, int *donull, int depth)
+int ProbeTT(long *score, long alpha, long beta, int *best, int *threat, int *donull, int depth)
{
unsigned long index;
@@ -328,7 +328,7 @@
}
-int QProbeTT(int *score, int alpha, int beta, int *best)
+int QProbeTT(long *score, long alpha, long beta, int *best)
{
unsigned long index;
|