From: Michael Sweet Date: Mon, 30 May 2016 23:41:07 +0000 (-0400) Subject: Fix compiler warnings. X-Git-Tag: v2.2b1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34facc5ce0cb95cc169b5580ac3bfd9b86caedd1;p=thirdparty%2Fcups.git Fix compiler warnings. --- diff --git a/filter/raster.c b/filter/raster.c index 4b83cc2b8c..ba5cb535c4 100644 --- a/filter/raster.c +++ b/filter/raster.c @@ -1,7 +1,7 @@ /* * Raster file routines for CUPS. * - * Copyright 2007-2015 by Apple Inc. + * Copyright 2007-2016 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * This file is part of the CUPS Imaging library. @@ -680,7 +680,7 @@ cupsRasterReadPixels(cups_raster_t *r, /* I - Raster stream */ } temp += count; - bytes -= count; + bytes -= (ssize_t)count; } else { @@ -695,7 +695,7 @@ cupsRasterReadPixels(cups_raster_t *r, /* I - Raster stream */ if (count < r->bpp) break; - bytes -= count; + bytes -= (ssize_t)count; if (!cups_raster_read(r, temp, r->bpp)) {