summaryrefslogtreecommitdiff
path: root/coders/mat.c
diff options
context:
space:
mode:
authorCristy <mikayla-grace@urban-warrior.org>2019-05-12 12:13:48 -0400
committerCristy <mikayla-grace@urban-warrior.org>2019-05-12 12:14:09 -0400
commit784105bcbb3adb6cc71820dcca34732bf37d64f9 (patch)
treec79e66af029b8e15cc70bb6025c27e4fc3fdd398 /coders/mat.c
parentc805401957b363925d058390d4ef84758df81a40 (diff)
downloadImageMagick-784105bcbb3adb6cc71820dcca34732bf37d64f9.tar.gz
Eliminate compiler warnings
Diffstat (limited to 'coders/mat.c')
-rw-r--r--coders/mat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coders/mat.c b/coders/mat.c
index e1c4961ae..0c01558cb 100644
--- a/coders/mat.c
+++ b/coders/mat.c
@@ -962,10 +962,10 @@ MATLAB_KO:
}
filepos = TellBlob(image);
- while(filepos < GetBlobSize(image) && !EOFBlob(image)) /* object parser loop */
+ while(filepos < (MagickOffsetType) GetBlobSize(image) && !EOFBlob(image)) /* object parser loop */
{
Frames = 1;
- if(filepos > GetBlobSize(image) || filepos < 0)
+ if(filepos > (MagickOffsetType) GetBlobSize(image) || filepos < 0)
break;
if(SeekBlob(image,filepos,SEEK_SET) != filepos) break;
/* printf("pos=%X\n",TellBlob(image)); */
@@ -1283,7 +1283,7 @@ RestoreMSCWarning
clone_info=DestroyImageInfo(clone_info);
if (quantum_info != (QuantumInfo *) NULL)
quantum_info=DestroyQuantumInfo(quantum_info);
- BImgBuff=RelinquishMagickMemory(BImgBuff);
+ BImgBuff=(unsigned char *) RelinquishMagickMemory(BImgBuff);
ThrowReaderException(CorruptImageError,"UnexpectedEndOfFile");
}
if((CellType==miINT8 || CellType==miUINT8) && (MATLAB_HDR.StructureFlag & FLAG_LOGICAL))