Fix GCC warning about comparing signed and unsigned integers.

This commit is contained in:
Adam Reichold 2021-02-22 18:40:38 +01:00
parent 310239dfbd
commit fc23c0fbfa

View File

@ -184,13 +184,13 @@ public:
// use with indices
T * operator[](int index)
{
assert((index >= 0) && (index < rows.size()));
assert((index >= 0) && (std::size_t(index) < rows.size()));
return rows[index];
}
const T * operator[](int index) const
{
assert((index >= 0) && (index < rows.size()));
assert((index >= 0) && (std::size_t(index) < rows.size()));
return rows[index];
}