Commit a7597272 authored by Georg Schäfer's avatar Georg Schäfer

Add explicit cast from std::size_t to Component_index in component.hxx to...

Add explicit cast from std::size_t to Component_index in component.hxx to silence narrowing conversion warning.
parent f2ac702c
Pipeline #3224 passed with stage
in 14 minutes and 3 seconds
......@@ -322,7 +322,7 @@ namespace mirrage::ecs {
static_assert(util::dependent_false<T>(), "Iteration is not supported by Void_storage_policy.");
return &dummy_instance + 1;
}
auto size() const -> Component_index { return _size; }
auto size() const -> Component_index { return static_cast<Component_index>(_size); }
auto empty() const -> bool { return _size == 0; }
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment