X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fcups.git;a=blobdiff_plain;f=filter%2Fraster.c;fp=filter%2Fraster.c;h=827215c68601f9b8e9b6e408f17f080e803899fd;hp=8905a83d99b3188a73d4927f167e20f5f7c5cf3d;hb=5d2cc5d32da88d72b6e9bbf5e89e05ca23f0a067;hpb=1a18c85cd15c6af88ec2c3a5ece0d67add6f56a7 diff --git a/filter/raster.c b/filter/raster.c index 8905a83d9..827215c68 100644 --- a/filter/raster.c +++ b/filter/raster.c @@ -1,5 +1,5 @@ /* - * "$Id: raster.c 11594 2014-02-14 20:09:01Z msweet $" + * "$Id: raster.c 12124 2014-08-28 15:37:22Z msweet $" * * Raster file routines for CUPS. * @@ -378,7 +378,7 @@ cupsRasterReadPixels(cups_raster_t *r, /* I - Raster stream */ if (!cups_raster_read(r, &byte, 1)) return (0); - r->count = byte + 1; + r->count = (unsigned)byte + 1; if (r->count > 1) ptr = r->pixels; @@ -418,7 +418,7 @@ cupsRasterReadPixels(cups_raster_t *r, /* I - Raster stream */ * Repeat the next N bytes... */ - count = (byte + 1) * r->bpp; + count = ((unsigned)byte + 1) * r->bpp; if (count > (unsigned)bytes) count = (unsigned)bytes; @@ -1448,5 +1448,5 @@ cups_write_fd(void *ctx, /* I - File descriptor pointer */ /* - * End of "$Id: raster.c 11594 2014-02-14 20:09:01Z msweet $". + * End of "$Id: raster.c 12124 2014-08-28 15:37:22Z msweet $". */