summaryrefslogtreecommitdiff
path: root/plugins/AdvaImg/src/FreeImage/PluginG3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AdvaImg/src/FreeImage/PluginG3.cpp')
-rw-r--r--plugins/AdvaImg/src/FreeImage/PluginG3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/AdvaImg/src/FreeImage/PluginG3.cpp b/plugins/AdvaImg/src/FreeImage/PluginG3.cpp
index d5c08b36e6..0a083b459b 100644
--- a/plugins/AdvaImg/src/FreeImage/PluginG3.cpp
+++ b/plugins/AdvaImg/src/FreeImage/PluginG3.cpp
@@ -92,7 +92,7 @@ G3GetFileSize(FreeImageIO *io, fi_handle handle) {
static BOOL
G3ReadFile(FreeImageIO *io, fi_handle handle, uint8 *tif_rawdata, tmsize_t tif_rawdatasize) {
- return ((tmsize_t)(io->read_proc(tif_rawdata, tif_rawdatasize, 1, handle) * tif_rawdatasize) == tif_rawdatasize);
+ return ((tmsize_t)(io->read_proc(tif_rawdata, (unsigned)tif_rawdatasize, 1, handle) * tif_rawdatasize) == tif_rawdatasize);
}
// ==========================================================