]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix compiler warnings.
authorMichael Sweet <michael.r.sweet@gmail.com>
Mon, 30 May 2016 23:41:07 +0000 (19:41 -0400)
committerMichael Sweet <michael.r.sweet@gmail.com>
Mon, 30 May 2016 23:41:07 +0000 (19:41 -0400)
filter/raster.c

index 4b83cc2b8c61e16a8cb0016900f6eb6f58321b6f..ba5cb535c4f7025c2b0c75fa96439caaa3c6afba 100644 (file)
@@ -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))
          {