From 5d39e65e7f578ed28313949a2a8272c3822dcdb2 Mon Sep 17 00:00:00 2001 From: Juha Reunanen Date: Thu, 10 Nov 2022 16:42:35 +0200 Subject: [PATCH] Problem: warning C4244: 'initializing': conversion from 'double' to 'unsigned int', possible loss of data Solution: add explicit typecasting Signed-off-by: Juha Reunanen --- src/lib/OpenEXR/ImfInputFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/OpenEXR/ImfInputFile.cpp b/src/lib/OpenEXR/ImfInputFile.cpp index 936075981..e5e4d218d 100644 --- a/src/lib/OpenEXR/ImfInputFile.cpp +++ b/src/lib/OpenEXR/ImfInputFile.cpp @@ -338,7 +338,7 @@ bufferedReadPixels (InputFile::Data* ifd, int scanLine1, int scanLine2) switch (toSlice.type) { case UINT: { - unsigned int fill = toSlice.fillValue; + unsigned int fill = static_cast(toSlice.fillValue); for (int x = xStart; x <= levelRange.max.x; x += toSlice.xSampling) {