Code/Editor

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-16 15:55:56 -07:00
parent b255334535
commit 8cef306efb
5 changed files with 7 additions and 8 deletions
+4 -4
View File
@@ -79,7 +79,7 @@ libtiffDummySeekProc (thandle_t fd, toff_t off, int i)
switch (i)
{
case SEEK_SET:
memImage->offset = off;
memImage->offset = static_cast<uint32>(off);
break;
case SEEK_CUR:
@@ -87,11 +87,11 @@ libtiffDummySeekProc (thandle_t fd, toff_t off, int i)
break;
case SEEK_END:
memImage->offset = memImage->size - off;
memImage->offset = static_cast<uint32>(memImage->size - off);
break;
default:
memImage->offset = off;
memImage->offset = static_cast<uint32>(off);
break;
}
@@ -262,7 +262,7 @@ bool CImageTIF::Load(const QString& fileName, CFloatImage& outImage)
}
}
uint32 linesize = TIFFScanlineSize(tif);
uint32 linesize = static_cast<uint32>(TIFFScanlineSize(tif));
uint8* linebuf = static_cast<uint8*>(_TIFFmalloc(linesize));
// We assume that a scanline has all of the samples in it. Validate the assumption.