diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-09-07 23:25:35 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-10-12 00:17:27 -0500 |
commit | 7e51e4cb84aeb3c191289752e0e6b92facd8f7f6 (patch) | |
tree | e07661aeb47a95dbbce602440099da860e2d0c06 /modules/hdr | |
parent | f9aec342dcd51d65c5970dd395e3c7a66cac446c (diff) |
Fix some LGTM errors of "Multiplication result converted to larger type"
Diffstat (limited to 'modules/hdr')
-rw-r--r-- | modules/hdr/image_loader_hdr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/hdr/image_loader_hdr.cpp b/modules/hdr/image_loader_hdr.cpp index 9d6a399eff..32a31aa764 100644 --- a/modules/hdr/image_loader_hdr.cpp +++ b/modules/hdr/image_loader_hdr.cpp @@ -65,7 +65,7 @@ Error ImageLoaderHDR::load_image(Ref<Image> p_image, FileAccess *f, bool p_force Vector<uint8_t> imgdata; - imgdata.resize(height * width * sizeof(uint32_t)); + imgdata.resize(height * width * (int)sizeof(uint32_t)); { uint8_t *w = imgdata.ptrw(); @@ -75,7 +75,7 @@ Error ImageLoaderHDR::load_image(Ref<Image> p_image, FileAccess *f, bool p_force if (width < 8 || width >= 32768) { // Read flat data - f->get_buffer(ptr, width * height * 4); + f->get_buffer(ptr, (uint64_t)width * height * 4); } else { // Read RLE-encoded data |