Package: lagan / 2.0-3

ambiuousEnd.patch Patch series | download
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
Author: Steffen Moeller
Last-Update: 2018-09-07 15:08:19 +0200
Description: Fix build issue

Index: lagan/src/glocal/rightinfluence.cpp
===================================================================
--- lagan.orig/src/glocal/rightinfluence.cpp
+++ lagan/src/glocal/rightinfluence.cpp
@@ -1,6 +1,6 @@
 #include <rightinfluence.h>
 
-Fragment origin, end;
+static Fragment originFrag, endFrag;
 
 // Sets the first default owner of the whole region
 void initRI(RI *RightInfluence, long long int scoreIndex) {
@@ -13,22 +13,22 @@ void initRI(RI *RightInfluence, long lon
 	}
 
 	// will lose to anyone
-	origin.seq1End = 0; origin.seq2End = 0;
-    origin.seq1Start = 0; origin.seq2Start = 0;
+	originFrag.seq1End = 0; originFrag.seq2End = 0;
+    originFrag.seq1Start = 0; originFrag.seq2Start = 0;
 
 	// hack to aid winner selection
-	origin.score = -1;
-	end.score = -2;
-	origin.totalScore = end.totalScore = 0;
+	originFrag.score = -1;
+	endFrag.score = -2;
+	originFrag.totalScore = endFrag.totalScore = 0;
 
 	// will win against anyone
-	end.seq1End = 0; end.seq2End = 0;
-	end.seq1Start = 0; end.seq2Start = 0;
+	endFrag.seq1End = 0; endFrag.seq2End = 0;
+	endFrag.seq1Start = 0; endFrag.seq2Start = 0;
 
-	origin.back = NULL;
+	originFrag.back = NULL;
 
-    RightInfluence->act[-INF] = &origin;
-    RightInfluence->act[+INF] = &end;
+    RightInfluence->act[-INF] = &originFrag;
+    RightInfluence->act[+INF] = &endFrag;
 }