solver: fix compile with -Werror on 64bit

cute-signatures
Natanael Copa 2012-10-03 09:04:35 +02:00
parent 4b7b5d4668
commit 00958d9207
1 changed files with 1 additions and 1 deletions

View File

@ -1664,7 +1664,7 @@ static void update_progress(struct progress *prog, size_t percent)
draw_progress(percent); draw_progress(percent);
if (prog->progress_fd != 0) { if (prog->progress_fd != 0) {
char buf[8]; char buf[8];
size_t n = snprintf(buf, sizeof(buf), "%d\n", percent); size_t n = snprintf(buf, sizeof(buf), "%zu\n", percent);
write(prog->progress_fd, buf, n); write(prog->progress_fd, buf, n);
} }
} }