offset=image->blob->custom_stream->teller(
image->blob->custom_stream->data);
- extent=image->blob->custom_stream->seeker(0,SEEK_END,
+ extent=(MagickSizeType) image->blob->custom_stream->seeker(0,SEEK_END,
image->blob->custom_stream->data);
- image->blob->custom_stream->seeker(offset,SEEK_SET,
+ (void) image->blob->custom_stream->seeker(offset,SEEK_SET,
image->blob->custom_stream->data);
}
break;
{
count=(ssize_t) fread(blob,sizeof(*blob),MagickMaxBufferExtent,
blob_info->file);
- image_info->custom_stream->writer(blob,count,
+ (void) image_info->custom_stream->writer(blob,(size_t) count,
image_info->custom_stream->data);
}
}
{
count=(ssize_t) fread(blob,sizeof(*blob),MagickMaxBufferExtent,
blob_info->file);
- image_info->custom_stream->writer(blob,count,
+ (void) image_info->custom_stream->writer(blob,(size_t) count,
image_info->custom_stream->data);
}
}
break;
}
p=image->blob->data+image->blob->offset;
- count=(ssize_t) MagickMin(length,image->blob->length-image->blob->offset);
+ count=(ssize_t) MagickMin((MagickOffsetType) length,image->blob->length-
+ image->blob->offset);
image->blob->offset+=count;
if (count != (ssize_t) length)
image->blob->eof=MagickTrue;
value|=(unsigned int) (*p++) << 8;
value|=(unsigned int) (*p++) << 16;
value|=(unsigned int) (*p++) << 24;
- return(value & 0xffffffff);
+ return(value);
}
value=(unsigned int) (*p++) << 24;
value|=(unsigned int) (*p++) << 16;
value|=(unsigned int) (*p++) << 8;
value|=(unsigned int) (*p++);
- return(value & 0xffffffff);
+ return(value);
}
\f
/*
value|=(MagickSizeType) (*p++) << 40;
value|=(MagickSizeType) (*p++) << 48;
value|=(MagickSizeType) (*p++) << 56;
- return(value & MagickULLConstant(0xffffffffffffffff));
+ return(value);
}
value=(MagickSizeType) (*p++) << 56;
value|=(MagickSizeType) (*p++) << 48;
value|=(MagickSizeType) (*p++) << 16;
value|=(MagickSizeType) (*p++) << 8;
value|=(MagickSizeType) (*p++);
- return(value & MagickULLConstant(0xffffffffffffffff));
+ return(value);
}
\f
/*
value|=(unsigned short) (*p++) << 8;
return(value);
}
- value=(unsigned short) (*p++) << 8;
+ value=(unsigned short) ((unsigned short) (*p++) << 8);
value|=(unsigned short) (*p++);
return(value);
}
value|=(unsigned int) (*p++) << 8;
value|=(unsigned int) (*p++) << 16;
value|=(unsigned int) (*p++) << 24;
- return(value & 0xffffffff);
+ return(value);
}
\f
/*
p=(const unsigned char *) ReadBlobStream(image,2,buffer,&count);
if (count != 2)
return((unsigned short) 0U);
- value=(unsigned int) (*p++);
- value|=(unsigned int) (*p++) << 8;
- return(value & 0xffff);
+ value=(unsigned short) (*p++);
+ value|=(unsigned short) (*p++) << 8;
+ return(value);
}
\f
/*
value|=(MagickSizeType) (*p++) << 16;
value|=(MagickSizeType) (*p++) << 8;
value|=(MagickSizeType) (*p++);
- return(value & MagickULLConstant(0xffffffffffffffff));
+ return(value);
}
\f
/*
p=(const unsigned char *) ReadBlobStream(image,2,buffer,&count);
if (count != 2)
return((unsigned short) 0U);
- value=(unsigned short) (*p++) << 8;
+ value=(unsigned short) ((*p++) << 8);
value|=(unsigned short) (*p++);
- return(value & 0xffff);
+ return((unsigned short) (value & 0xffff));
}
\f
/*
return(data);
}
data=image->blob->data+image->blob->offset;
- *count=(ssize_t) MagickMin(length,image->blob->length-image->blob->offset);
+ *count=(ssize_t) MagickMin((MagickOffsetType) length,image->blob->length-
+ image->blob->offset);
image->blob->offset+=(*count);
if (*count != (ssize_t) length)
image->blob->eof=MagickTrue;
{
count=image_info->custom_stream->reader(blob,MagickMaxBufferExtent,
image_info->custom_stream->data);
- count=(ssize_t) write(file,(const char *) blob,count);
+ count=(ssize_t) write(file,(const char *) blob,(size_t) count);
}
(void) fclose(blob_info->file);
(void) FormatLocaleString(clone_info->filename,MagickPathExtent,