ref: 5fa60c4d460e9054b9e6cb62549dd40612c0ea48
parent: 448095ede815b1a63ddedc602c3ac768a0d52968
author: Ben Harris <bjh21@bjh21.me.uk>
date: Sat Feb 18 16:32:58 EST 2023
Unequal: use %u to format an unsigned int
--- a/unequal.c
+++ b/unequal.c
@@ -1580,10 +1580,10 @@
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);