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
|
Author: Lukas Geyer <lukas@debian.org>
Description: General code cleanup.
--- sjeng-11.2.orig/utils.c
+++ sjeng-11.2/utils.c
@@ -529,7 +529,8 @@
void hash_extract_pv(int level, char str[])
{
- int dummy, bm;
+ int bm, dummy_int;
+ long dummy_long;
move_s moves[MOVE_BUFF];
int num_moves;
char output[STR_BUFF];
@@ -538,7 +539,7 @@
level--;
if (!level) return;
- if(ProbeTT(&dummy, 0, 0, &bm, &dummy, &dummy, 0) != HMISS)
+ if(ProbeTT(&dummy_long, 0, 0, &bm, &dummy_int, &dummy_int, 0) != HMISS)
{
gen(&moves[0]);
num_moves = numb_moves;
@@ -1342,7 +1343,7 @@
{
eval();
/* invalidate the ecache */
- hash = (++hash) % ULONG_MAX;
+ ++hash;
}
cpu_end = clock ();
|