From 371f5be050bd38be40592b73abe95a23f4c9385e Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Wed, 28 Dec 2022 23:31:06 -0800 Subject: [PATCH] fix signedness of comparison var --- library/modules/Gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/modules/Gui.cpp b/library/modules/Gui.cpp index 71a166b89..7283b6774 100644 --- a/library/modules/Gui.cpp +++ b/library/modules/Gui.cpp @@ -2166,7 +2166,7 @@ int getDepthAt_default (int32_t x, int32_t y) return 0; const size_t num_viewports = gps->viewport.size(); const size_t index = (x * main_vp->dim_y) + y; - for (int depth = 0; depth < num_viewports; ++depth) { + for (size_t depth = 0; depth < num_viewports; ++depth) { if (gps->viewport[depth]->screentexpos_background[index]) return depth; }