fix signed/ unsigned comparison

This commit is contained in:
Filip Sykala 2022-04-05 13:10:33 +02:00
parent a5ae6394a5
commit d5f2595a25

View file

@ -2246,8 +2246,8 @@ void GLGizmoEmboss::init_icons()
filenames, states, m_gui_cfg->icon_width, compress);
if (!is_loaded ||
m_icons_texture.get_width() < ((int)states.size() * m_gui_cfg->icon_width) ||
m_icons_texture.get_height() < ((int)filenames.size() * m_gui_cfg->icon_width)) {
(size_t)m_icons_texture.get_width() < (states.size() * m_gui_cfg->icon_width) ||
(size_t)m_icons_texture.get_height() < (filenames.size() * m_gui_cfg->icon_width)) {
// bad load of icons, but all usage of m_icons_texture check that texture is initialized
assert(false);
m_icons_texture.reset();