diff options
-rw-r--r-- | src/alphagen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alphagen.c b/src/alphagen.c index d37b36c..2510e5e 100644 --- a/src/alphagen.c +++ b/src/alphagen.c @@ -415,7 +415,7 @@ bool image_write_png(char *file_name, struct image *img) /* pack pixels into bytes */ png_set_packing(png_ptr); - if (img->height > PNG_UINT_32_MAX/png_sizeof(png_bytep)) { + if (img->height > PNG_UINT_32_MAX / sizeof(png_bytep)) { png_error (png_ptr, "Image is too tall to process in memory"); return false; } |