X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/1c79f726622c4a90e9ed4882246c0c320a8e6fdc..c123302699919b0f34de9bc5d9019c2c1f14b7a1:/src/pnm.c diff --git a/src/pnm.c b/src/pnm.c index ace5e18..de9d280 100644 --- a/src/pnm.c +++ b/src/pnm.c @@ -154,7 +154,7 @@ static int fprintf_ascii(FILE *f, char *fmt, ...) if (rc < 0) return -1; - assert(rc < SIZE_MAX); + assert(rc < (size_t)-1); buf = malloc(rc+1u); if (!buf) return -1;