From 5fa60c4d460e9054b9e6cb62549dd40612c0ea48 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 18 Feb 2023 21:32:58 +0000 Subject: [PATCH] Unequal: use %u to format an unsigned int --- unequal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unequal.c b/unequal.c index b39683a..130a813 100644 --- a/unequal.c +++ b/unequal.c @@ -1580,10 +1580,10 @@ static char *interpret_move(const game_state *state, game_ui *ui, self = (GRID(state, flags, ui->hx, ui->hy) & adjthan[i].f); if (self) - sprintf(buf, "F%d,%d,%d", ui->hx, ui->hy, + sprintf(buf, "F%d,%d,%u", ui->hx, ui->hy, ADJ_TO_SPENT(adjthan[i].f)); else - sprintf(buf, "F%d,%d,%d", nx, ny, + sprintf(buf, "F%d,%d,%u", nx, ny, ADJ_TO_SPENT(adjthan[i].fo)); return dupstr(buf);