diff options
-rw-r--r-- | converter/other/pngtopnm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/pngtopnm.c b/converter/other/pngtopnm.c index 012b870b..b32bb682 100644 --- a/converter/other/pngtopnm.c +++ b/converter/other/pngtopnm.c @@ -450,7 +450,7 @@ computePngLineSize(png_info * const pngInfoP) { default: samplesPerPixel = 1; } - if (UINT_MAX / bytesPerSample / samplesPerPixel > pngInfoP->width) + if (UINT_MAX / bytesPerSample / samplesPerPixel < pngInfoP->width) pm_error("Width %u of PNG is uncomputably large", (unsigned int)pngInfoP->width); |