diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-18 22:40:57 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-18 22:41:01 +0100 |
commit | 35c604d37505f8a93e7e9207d40dadaf12e8b59a (patch) | |
tree | 66a793892e718428b72ed7fa2dcad1140e5f6a29 | |
parent | 6c45ac02b57114c7f857e57353d91e143c1caedb (diff) |
Parentheses
-rw-r--r-- | FICS/movecheck.c | 12 |
1 files 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); |