resource_info.memory+=(MagickOffsetType) size;
limit=resource_info.memory_limit;
if ((limit == MagickResourceInfinity) ||
- ((MagickSizeType) resource_info.memory < limit))
+ (resource_info.memory < (MagickOffsetType) limit))
status=MagickTrue;
else
resource_info.memory-=(MagickOffsetType) size;
resource_info.map+=(MagickOffsetType) size;
limit=resource_info.map_limit;
if ((limit == MagickResourceInfinity) ||
- ((MagickSizeType) resource_info.map < limit))
+ (resource_info.map < (MagickOffsetType) limit))
status=MagickTrue;
else
resource_info.map-=(MagickOffsetType) size;
resource_info.disk+=(MagickOffsetType) size;
limit=resource_info.disk_limit;
if ((limit == MagickResourceInfinity) ||
- ((MagickSizeType) resource_info.disk < limit))
+ (resource_info.disk < (MagickOffsetType) limit))
status=MagickTrue;
else
resource_info.disk-=(MagickOffsetType) size;
resource_info.file+=(MagickOffsetType) size;
limit=resource_info.file_limit;
if ((limit == MagickResourceInfinity) ||
- ((MagickSizeType) resource_info.file < limit))
+ (resource_info.file < (MagickOffsetType) limit))
status=MagickTrue;
else
resource_info.file-=(MagickOffsetType) size;
{
limit=resource_info.thread_limit;
if ((limit == MagickResourceInfinity) ||
- ((MagickSizeType) resource_info.thread < limit))
+ (resource_info.thread < (MagickOffsetType) limit))
status=MagickTrue;
if (logging != MagickFalse)
{
{
limit=resource_info.throttle_limit;
if ((limit == MagickResourceInfinity) ||
- ((MagickSizeType) resource_info.throttle < limit))
+ (resource_info.throttle < (MagickOffsetType) limit))
status=MagickTrue;
if (logging != MagickFalse)
{
resource_info.time+=(MagickOffsetType) size;
limit=resource_info.time_limit;
if ((limit == MagickResourceInfinity) ||
- ((MagickSizeType) resource_info.time < limit))
+ (resource_info.time < (MagickOffsetType) limit))
status=MagickTrue;
else
resource_info.time-=(MagickOffsetType) size;