Skip to content

Commit 9c7a96d

Browse files
committed
Add const to string literals
1 parent d3a5371 commit 9c7a96d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ComputerPlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void ComputerPlayer::set_stats() {
9393
&r_king_prox, &r_mobility, &r_xmobility, &r_pawns, &r_mobilitybonus,
9494
&r_xmobilitybonus, &q_material, &q_king_prox, &q_centre_prox,
9595
&k_centre_dist, &k_pawn, &k_castle, &ply, NULL};
96-
char *desc[] = {"draw value", "endgame threshold", "pawn material",
96+
const char *desc[] = {"draw value", "endgame threshold", "pawn material",
9797
"doubled pawn", "backward pawn", "pawn proximity to opposite edge",
9898
"isolated pawn on file 1 or 8", "isolated pawn on file 2 or 7",
9999
"isolated pawn on file 3 or 6", "isolated pawn on file 4 or 5",

0 commit comments

Comments
 (0)