diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-18 21:32:58 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-18 21:32:58 +0000 |
| commit | 5fa60c4d460e9054b9e6cb62549dd40612c0ea48 (patch) | |
| tree | 33d503ca8d1394517711ab4801281e60e1c6ba9e /unequal.c | |
| parent | 448095ede815b1a63ddedc602c3ac768a0d52968 (diff) | |
| download | puzzles-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |