diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-17 16:02:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 16:02:12 +0200 |
commit | b0a51bf9fe6b35cf4e2a76ec067d76349ca9b75c (patch) | |
tree | 905b5c483a9dab81bc19fbfe9893e17f02506720 /modules/webp/image_loader_webp.cpp | |
parent | 45e0f9fd523cb861b8e432966577d7c4608564ad (diff) | |
parent | 469fa47e0646d8f2ca3237dede8a04568039c7c6 (diff) |
Merge pull request #48768 from akien-mga/file-access-64-bit-4.0
Make all file access 64-bit (`uint64_t`)
Diffstat (limited to 'modules/webp/image_loader_webp.cpp')
-rw-r--r-- | modules/webp/image_loader_webp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/webp/image_loader_webp.cpp b/modules/webp/image_loader_webp.cpp index 6e62840a3e..d7e88d76b1 100644 --- a/modules/webp/image_loader_webp.cpp +++ b/modules/webp/image_loader_webp.cpp @@ -147,7 +147,7 @@ static Ref<Image> _webp_mem_loader_func(const uint8_t *p_png, int p_size) { Error ImageLoaderWEBP::load_image(Ref<Image> p_image, FileAccess *f, bool p_force_linear, float p_scale) { Vector<uint8_t> src_image; - int src_image_len = f->get_len(); + uint64_t src_image_len = f->get_len(); ERR_FAIL_COND_V(src_image_len == 0, ERR_FILE_CORRUPT); src_image.resize(src_image_len); |