Skip to content

Commit 6534ee5

Browse files
committed
PluginEXR: fixed offset type
1 parent 43cba63 commit 6534ee5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Plugins/PluginEXR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ Load(FreeImageIO *io, fi_handle handle, int page, int flags, void *data) {
395395
Imf::FrameBuffer frameBuffer;
396396

397397
// allow dataWindow with minimal bounds different form zero
398-
size_t offset = - dataWindow.min.x * bytespp - dataWindow.min.y * pitch;
398+
std::ptrdiff_t offset = - dataWindow.min.x * bytespp - dataWindow.min.y * pitch;
399399

400400
if (components == 1) {
401401
frameBuffer.insert ("Y", // name

0 commit comments

Comments
 (0)