Author: Lukas Geyer <lukas@debian.org>
Description: Made all score variables long int,
             fixed format mismatches in printf().
Bugs: #192902

--- sjeng-11.2.orig/ecache.c
+++ sjeng-11.2/ecache.c
@@ -29,7 +29,7 @@
 {
 unsigned long stored_hash;
 unsigned long hold_hash;
-unsigned int score;
+long int score;
 } ECacheType;
 
 /*ECacheType ECache[ECACHESIZE];*/
@@ -40,7 +40,7 @@
 
 void storeECache(long int score)
 {
-  int index;
+  unsigned int index;
 
   index = hash % ECacheSize;
 
@@ -51,7 +51,7 @@
 
 void checkECache(long int *score, int *in_cache)
 {
-  int index;
+  unsigned int index;
 
   ECacheProbes++;
 
@@ -84,7 +84,7 @@
     exit(EXIT_FAILURE);
   }
   
-  printf("Allocated %lu eval cache entries, totalling %lu bytes.\n",
+  printf("Allocated %u eval cache entries, totalling %zu bytes.\n",
           ECacheSize, sizeof(ECacheType)*ECacheSize);
   return;
 }
