From 974833592c808ab8d4003832067d286ff8ffda37 Mon Sep 17 00:00:00 2001 From: Andres Rios Tascon Date: Mon, 15 Apr 2024 11:35:41 -0700 Subject: [PATCH] Fixed comparison with different signedness --- SDL/Event.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDL/Event.cc b/SDL/Event.cc index 1cf710e1..6c59c8ea 100644 --- a/SDL/Event.cc +++ b/SDL/Event.cc @@ -862,7 +862,7 @@ void SDL::Event::createPixelTriplets() { for (unsigned int i = 0; i < nInnerSegments; i++) { // loop over # pLS int8_t pixelType = pixelTypes[i]; // Get pixel type for this pLS int superbin = superbins[i]; // Get superbin for this pixel - if ((superbin < 0) or (superbin >= size_superbins) or (pixelType > 2) or (pixelType < 0)) { + if ((superbin < 0) or (superbin >= (int)size_superbins) or (pixelType > 2) or (pixelType < 0)) { connectedPixelSize_host[i] = 0; connectedPixelIndex_host[i] = 0; continue; @@ -1096,7 +1096,7 @@ void SDL::Event::createPixelQuintuplets() { for (unsigned int i = 0; i < nInnerSegments; i++) { int8_t pixelType = pixelTypes[i]; // Get pixel type for this pLS int superbin = superbins[i]; // Get superbin for this pixel - if ((superbin < 0) or (superbin >= size_superbins) or (pixelType > 2) or (pixelType < 0)) { + if ((superbin < 0) or (superbin >= (int)size_superbins) or (pixelType > 2) or (pixelType < 0)) { connectedPixelIndex_host[i] = 0; connectedPixelSize_host[i] = 0; continue;