mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-19 21:43:00 +01:00
tinyexr: Fixed warnings.
This commit is contained in:
4
3rdparty/tinyexr/tinyexr.h
vendored
4
3rdparty/tinyexr/tinyexr.h
vendored
@@ -10513,7 +10513,7 @@ static int DecodeChunk(EXRImage *exr_image, const EXRHeader *exr_header,
|
||||
return TINYEXR_ERROR_INVALID_DATA;
|
||||
}
|
||||
|
||||
size_t data_size = size - (offsets[tile_idx] + sizeof(int) * 5);
|
||||
size_t data_size = size - size_t(offsets[tile_idx] + sizeof(int) * 5);
|
||||
const unsigned char *data_ptr =
|
||||
reinterpret_cast<const unsigned char *>(head + offsets[tile_idx]);
|
||||
|
||||
@@ -10584,7 +10584,7 @@ static int DecodeChunk(EXRImage *exr_image, const EXRHeader *exr_header,
|
||||
// 4 byte: scan line
|
||||
// 4 byte: data size
|
||||
// ~ : pixel data(uncompressed or compressed)
|
||||
size_t data_size = size - (offsets[y_idx] + sizeof(int) * 2);
|
||||
size_t data_size = size - size_t(offsets[y_idx] + sizeof(int) * 2);
|
||||
const unsigned char *data_ptr =
|
||||
reinterpret_cast<const unsigned char *>(head + offsets[y_idx]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user