From 35c604d37505f8a93e7e9207d40dadaf12e8b59a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 18 Dec 2023 22:40:57 +0100 Subject: Parentheses --- FICS/movecheck.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/FICS/movecheck.c b/FICS/movecheck.c index 248441c..85f599f 100644 --- a/FICS/movecheck.c +++ b/FICS/movecheck.c @@ -668,8 +668,8 @@ move_calculate(game_state_t *gs, move_t *mt, int promote) wpstring[mt->fromRank], DROP_CHAR, DROP_CHAR, - mt->toFile + 'a', - mt->toRank + 1); + (mt->toFile + 'a'), + (mt->toRank + 1)); too_long = (ret < 0 || (size_t)ret >= sizeof mt->moveString); @@ -706,10 +706,10 @@ move_calculate(game_state_t *gs, move_t *mt, int promote) ret = snprintf(mt->moveString, sizeof mt->moveString, "%s/%c%d-%c%d", wpstring[piecetype(gs->board[mt->fromFile][mt->fromRank])], - mt->fromFile + 'a', - mt->fromRank + 1, - mt->toFile + 'a', - mt->toRank + 1); + (mt->fromFile + 'a'), + (mt->fromRank + 1), + (mt->toFile + 'a'), + (mt->toRank + 1)); too_long = (ret < 0 || (size_t)ret >= sizeof mt->moveString); -- cgit v1.2.3