File: 01-spelling.diff

package info (click to toggle)
polyglot 2.0.4%2Bgit20210322-1.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,296 kB
  • sloc: ansic: 10,577; sh: 3,711; makefile: 18
file content (31 lines) | stat: -rw-r--r-- 975 bytes parent folder | download | duplicates (6)
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
Description: Spell patch thanx to lintian
Forwarded: Upstream will kill me
Author: Oliver Korff <ok@xynyx.de>


--- a/book.c
+++ b/book.c
@@ -229,7 +229,7 @@
    char move_string[256];
    list_t list[1];
    int i;
-   int treshold=option_get_int(Option,"BookTreshold");
+   int threshold=option_get_int(Option,"BookThreshold");
 
    ASSERT(board!=NULL);
 
@@ -239,11 +239,11 @@
    
    for(i=0; i<list_size(list); i++){
        move_to_san(list->move[i],board,move_string,256);
-       if(list->value[i]>10*treshold){
+       if(list->value[i]>10*threshold){
            printf(" %6s %5.2f%%\n",move_string,list->value[i]/100.0);
        }else{
-           printf(" %6s %5.2f%% (below treshold %4.2f%%)\n",
-                  move_string,list->value[i]/100.0,treshold/10.0);
+           printf(" %6s %5.2f%% (below threshold %4.2f%%)\n",
+                  move_string,list->value[i]/100.0,threshold/10.0);
        }
    }
    // this is necessary by the xboard protocol