Skip to content

Commit

Permalink
Restore ssize_t for raster/r.coin/format.c
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Feb 18, 2025
1 parent 804e0d5 commit 5174435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raster/r.coin/format.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int format_double(double v, char *buf, int n)
sprintf(fmt, "%%%d.2lf", n);
sprintf(buf, fmt, v);

for (k = n; (size_t)strlen(buf) > n; k--) {
for (k = n; (ssize_t)strlen(buf) > n; k--) {
sprintf(fmt, "%%%d.%dg", n, k);
sprintf(buf, fmt, v);
}
Expand Down

0 comments on commit 5174435

Please sign in to comment.