From fc23c0fbfa0a5c28bef1125f44d36917d7c50a9d Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Mon, 22 Feb 2021 18:40:38 +0100 Subject: [PATCH] Fix GCC warning about comparing signed and unsigned integers. --- rtengine/array2D.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/array2D.h b/rtengine/array2D.h index ba2e6a5d3..10d797999 100644 --- a/rtengine/array2D.h +++ b/rtengine/array2D.h @@ -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]; }