From 784105bcbb3adb6cc71820dcca34732bf37d64f9 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 12 May 2019 12:13:48 -0400 Subject: Eliminate compiler warnings --- coders/mat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coders/mat.c') 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)) -- cgit v1.2.3