diff --git a/src/Magnum/MeshTools/CompressIndices.cpp b/src/Magnum/MeshTools/CompressIndices.cpp index b1bb1f50d..1635830de 100644 --- a/src/Magnum/MeshTools/CompressIndices.cpp +++ b/src/Magnum/MeshTools/CompressIndices.cpp @@ -49,7 +49,7 @@ template inline Containers::Array compress(const std::vector, Mesh::IndexType, UnsignedInt, UnsignedInt> compressIndices(const std::vector& indices) { /** @todo Performance hint when range can be represented by smaller value? */ - auto minmax = std::minmax_element(indices.begin(), indices.end()); + const auto minmax = std::minmax_element(indices.begin(), indices.end()); Containers::Array data; Mesh::IndexType type; switch(Math::log(256, *minmax.second)) {