../src/slic3r/GUI/GLModel.cpp:180:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Slic3r::GUI::GLModel::RenderData>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
This commit is contained in:
Filip Sykala 2021-11-22 18:52:11 +01:00
parent 13072f9cd2
commit 4a31811410
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ void GLModel::set_color(int entity_id, const std::array<float, 4>& color)
}
}
const std::array<float, 4> GLModel::get_color(int entity_id) const
const std::array<float, 4> GLModel::get_color(size_t entity_id) const
{
if (entity_id < 0 || entity_id >= m_render_data.size()) return {};
return m_render_data[entity_id].color;

View File

@ -77,7 +77,7 @@ namespace GUI {
// if entity_id == -1 set the color of all entities
void set_color(int entity_id, const std::array<float, 4>& color);
const std::array<float, 4> get_color(int entity_id=0) const;
const std::array<float, 4> get_color(size_t entity_id = 0U) const;
void reset();
void render() const;