}
if (LocaleCompare("seed",option+1) == 0)
{
- size_t
+ unsigned long
seed;
if (*option == '+')
{
- seed=(size_t) time((time_t *) NULL);
+ seed=(unsigned long) time((time_t *) NULL);
SetRandomSecretKey(seed);
break;
}
(void) ReadBlob(image,compact_size,compact_pixels);
stream.next_in=(Bytef *)compact_pixels;
- stream.avail_in=compact_size;
+ stream.avail_in=(unsigned int) compact_size;
stream.next_out=(Bytef *)pixels;
- stream.avail_out=count;
+ stream.avail_out=(unsigned int) count;
if(inflateInit(&stream) == Z_OK)
{
next_image->compression=NoCompression;
(void) WriteBlobMSBLong(image,(unsigned int) next_image->page.y);
(void) WriteBlobMSBLong(image,(unsigned int) next_image->page.x);
- (void) WriteBlobMSBLong(image,(unsigned int) next_image->page.y+
- next_image->rows);
- (void) WriteBlobMSBLong(image,(unsigned int) next_image->page.x+
- next_image->columns);
+ (void) WriteBlobMSBLong(image,(unsigned int) (next_image->page.y+
+ next_image->rows));
+ (void) WriteBlobMSBLong(image,(unsigned int) (next_image->page.x+
+ next_image->columns));
packet_size=next_image->depth > 8 ? 2UL : 1UL;
channel_size=(unsigned int) ((packet_size*next_image->rows*
next_image->columns)+2);
if (rows_per_strip < 1)
rows_per_strip=1;
if ((image->rows/rows_per_strip) >= (1UL << 15))
- rows_per_strip=(image->rows >> 15);
+ rows_per_strip=(uint32) (image->rows >> 15);
(void) TIFFSetField(tiff,TIFFTAG_ROWSPERSTRIP,rows_per_strip);
if ((image->resolution.x != 0.0) && (image->resolution.y != 0.0))
{