Unequal: use %u to format an unsigned int

This commit is contained in:
Ben Harris
2023-02-18 21:32:58 +00:00
parent 448095ede8
commit 5fa60c4d46

View File

@ -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); self = (GRID(state, flags, ui->hx, ui->hy) & adjthan[i].f);
if (self) 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)); ADJ_TO_SPENT(adjthan[i].f));
else else
sprintf(buf, "F%d,%d,%d", nx, ny, sprintf(buf, "F%d,%d,%u", nx, ny,
ADJ_TO_SPENT(adjthan[i].fo)); ADJ_TO_SPENT(adjthan[i].fo));
return dupstr(buf); return dupstr(buf);