summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorKirill Diduk <kirill.diduk@gmail.com>2021-09-06 15:40:41 +0200
committerKirill Diduk <kirill.diduk@gmail.com>2021-09-06 15:40:41 +0200
commit92fa2bac2345776e64b5817e66ca9d9bd6ce80a7 (patch)
tree66e182e38aa2d9b4ccd839b6c66927b0b730b1e8 /editor
parentd9b07faad2da7845b3a48115ac479900ab049f41 (diff)
Explicitly convert signed to unsigned value
Diffstat (limited to 'editor')
-rw-r--r--editor/import/resource_importer_texture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp
index daf7b15794..61745cb6ee 100644
--- a/editor/import/resource_importer_texture.cpp
+++ b/editor/import/resource_importer_texture.cpp
@@ -393,7 +393,7 @@ Error ResourceImporterTexture::import(const String &p_source_file, const String
float lossy = p_options["compress/lossy_quality"];
int pack_channels = p_options["compress/channel_pack"];
bool mipmaps = p_options["mipmaps/generate"];
- uint32_t mipmap_limit = int(mipmaps ? int(p_options["mipmaps/limit"]) : int(-1));
+ uint32_t mipmap_limit = mipmaps ? uint32_t(p_options["mipmaps/limit"]) : uint32_t(-1);
bool fix_alpha_border = p_options["process/fix_alpha_border"];
bool premult_alpha = p_options["process/premult_alpha"];
bool normal_map_invert_y = p_options["process/normal_map_invert_y"];