File: neval.c.patch

package info (click to toggle)
sjeng 11.2-15
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,436 kB
  • sloc: ansic: 13,378; sh: 324; makefile: 29
file content (23 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Lukas Geyer <geyer@math.uni-dortmund.de>
Description: General code cleanup.

--- sjeng-11.2.orig/neval.c
+++ sjeng-11.2/neval.c
@@ -177,7 +177,7 @@
   int in_cache;
   int wp = 0, bp = 0, wn = 0, bn = 0, wb = 0, bb = 0,
     wq = 0, bq = 0, wr = 0, br = 0;
-  int fwrook, fbrook, rwrook, rbrook;
+  int fwrook = 0, fbrook = 0, rwrook = 0, rbrook = 0;
   int wpotential = 0, bpotential = 0, tmp;
   
   in_cache = 0;
@@ -818,7 +818,7 @@
   int in_cache;
   int wp = 0, bp = 0, wn = 0, bn = 0, wb = 0, bb = 0,
 	  wq = 0, bq = 0, wr = 0, br = 0;
-  int rbrook, fbrook, rwrook,fwrook;
+  int rbrook = 0, fbrook = 0, rwrook = 0,fwrook = 0;
 
   in_cache = 0;