Fix warning
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:350:15: warning: array index -1 is before the beginning of the array [clang-diagnostic-array-bounds]
T alpha = pixel->data[alphaPos]; ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:935:13: note: in instantiation of function template specialization 'multiplyAlpha<half, ExrPixel_<half, 1>, 1, -1>' requested here
multiplyAlpha<_T_, ExrPixel, size, alphaPos>(rgba); ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:896:5: note: in instantiation of member function 'EncoderImpl<half, 1, -1>::encodeData' requested here
EncoderImpl(Imf::OutputFile* _file, const ExrPaintLayerSaveInfo* _info, int width) : file(_file), info(_info), pixels(width), m_width(width) {} ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:949:24: note: in instantiation of member function 'EncoderImpl<half, 1, -1>::EncoderImpl' requested here
return new EncoderImpl < half, 1, -1 > (&file, &info, width); ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:880:5: note: array 'data' declared here
_T_ data[size]; ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:359:9: warning: array index -1 is before the beginning of the array [clang-diagnostic-array-bounds]
pixel->data[alphaPos] = alpha; ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:880:5: note: array 'data' declared here
_T_ data[size]; ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:350:15: warning: array index -1 is before the beginning of the array [-Warray-bounds]
T alpha = pixel->data[alphaPos]; ^ ~~~~~~~~
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:935:13: note: in instantiation of function template specialization 'multiplyAlpha<half, ExrPixel_<half, 1>, 1, -1>' requested here
multiplyAlpha<_T_, ExrPixel, size, alphaPos>(rgba); ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:896:5: note: in instantiation of member function 'EncoderImpl<half, 1, -1>::encodeData' requested here
EncoderImpl(Imf::OutputFile* _file, const ExrPaintLayerSaveInfo* _info, int width) : file(_file), info(_info), pixels(width), m_width(width) {} ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:949:24: note: in instantiation of member function 'EncoderImpl<half, 1, -1>::EncoderImpl' requested here
return new EncoderImpl < half, 1, -1 > (&file, &info, width); ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:880:5: note: array 'data' declared here
_T_ data[size]; ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:350:15: warning: array index -1 is before the beginning of the array [-Warray-bounds]
T alpha = pixel->data[alphaPos]; ^ ~~~~~~~~
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:935:13: note: in instantiation of function template specialization 'multiplyAlpha<float, ExrPixel_<float, 1>, 1, -1>' requested here
multiplyAlpha<_T_, ExrPixel, size, alphaPos>(rgba); ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:896:5: note: in instantiation of member function 'EncoderImpl<float, 1, -1>::encodeData' requested here
EncoderImpl(Imf::OutputFile* _file, const ExrPaintLayerSaveInfo* _info, int width) : file(_file), info(_info), pixels(width), m_width(width) {} ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:952:24: note: in instantiation of member function 'EncoderImpl<float, 1, -1>::EncoderImpl' requested here
return new EncoderImpl < float, 1, -1 > (&file, &info, width); ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:880:5: note: array 'data' declared here
_T_ data[size]; ^
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:359:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
pixel->data[alphaPos] = alpha; ^ ~~~~~~~~
/home/frederik/dev/kde/krita/plugins/impex/exr/exr_converter.cc:880:5: note: array 'data' declared here
_T_ data[size]; ^
3 warnings generated.