Skip to content

Commit de05982

Browse files
committed
Fixing fire.h and material_value.c
Small, but useful fixes.
1 parent 8fb4270 commit de05982

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/fire.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ along with this program. If not, see http://www.gnu.org/licenses/.
6565

6666
#define true 1
6767
#define false 0
68+
#if defined(__GNUC__)
6869
#define bool uint8
70+
#elif defined(__INTEL_COMPILER) || defined(_MSC_VER)
71+
#define bool boolean // Added 5/17/2013
72+
#endif
73+
6974

7075
#define HasPopCNT
7176
#define HasPreFetch

src/material_value.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,9 @@ static int WhiteWeight(int wP, int wN, int wB, int wBL, int wBD, int wR, int wQ,
485485
wWeight = 7;
486486
}
487487
}
488-
if (wQ == 1 && wPhase == 4 && bPhase >= 2 && bP >= 1) // Added on 3/29/2013, recommended by Jose Maria Velasco
489-
wWeight = 5;
490488
}
491-
489+
if (wQ == 1 && wPhase == 4 && bPhase >= 2 && bP >= 1) // Added on 3/29/2013, recommended by Jose Maria Velasco
490+
wWeight = 5;
492491
return wWeight;
493492
}
494493
static int BlackWeight(int wP, int wN, int wB, int wBL, int wBD, int wR, int wQ, int bP, int bN, int bB, int bBL,
@@ -833,10 +832,9 @@ static int BlackWeight(int wP, int wN, int wB, int wBL, int wBD, int wR, int wQ,
833832
bWeight = 7;
834833
}
835834
}
836-
if (bQ == 1 && bPhase == 4 && wPhase >= 2 && wP >= 1) // Added on 3/29/2013, recommended by Jose Maria Velasco
837-
bWeight = 5;
838835
}
839-
836+
if (bQ == 1 && bPhase == 4 && wPhase >= 2 && wP >= 1) // Added on 3/29/2013, recommended by Jose Maria Velasco
837+
bWeight = 5;
840838
return bWeight;
841839
}
842840

0 commit comments

Comments
 (0)