aboutsummaryrefslogtreecommitdiff
path: root/unequal.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-02-18 21:32:58 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-02-18 21:32:58 +0000
commit5fa60c4d460e9054b9e6cb62549dd40612c0ea48 (patch)
tree33d503ca8d1394517711ab4801281e60e1c6ba9e /unequal.c
parent448095ede815b1a63ddedc602c3ac768a0d52968 (diff)
downloadpuzzles-5fa60c4d460e9054b9e6cb62549dd40612c0ea48.zip
puzzles-5fa60c4d460e9054b9e6cb62549dd40612c0ea48.tar.gz
puzzles-5fa60c4d460e9054b9e6cb62549dd40612c0ea48.tar.bz2
puzzles-5fa60c4d460e9054b9e6cb62549dd40612c0ea48.tar.xz
Unequal: use %u to format an unsigned int
Diffstat (limited to 'unequal.c')
-rw-r--r--unequal.c4
1 files 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);