diff options
-rw-r--r-- | gs/base/gdevtsep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/base/gdevtsep.c b/gs/base/gdevtsep.c index 689a10fa2..6ed741c55 100644 --- a/gs/base/gdevtsep.c +++ b/gs/base/gdevtsep.c @@ -1582,7 +1582,7 @@ tiffsep_print_page(gx_device_printer * pdev, FILE * file) /* Write the page directory for the CMYK equivalent file. */ pdev->color_info.depth = 32; /* Create directory for 32 bit cmyk */ - if (pdev->height > (max_long - ftell(file))/(pdev->width*4)) /* note width is never 0 in print_page */ + if (pdev->height > ((long) 0xFFFFFFFF - ftell(file))/(pdev->width*4)) /* note width is never 0 in print_page */ { dprintf("CMYK composite file would be too large! Reduce resolution.\n"); return_error(gs_error_rangecheck); /* this will overflow max_long */ |