From 72c002f8c597cd02c326c238f3abe53d9d09c728 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 14 Oct 2020 12:03:51 -0700 Subject: [PATCH] Avoid -Wsign-compare warning --- src/osx/core/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/core/display.cpp b/src/osx/core/display.cpp index fde27cf171..46a8d4922c 100644 --- a/src/osx/core/display.cpp +++ b/src/osx/core/display.cpp @@ -256,7 +256,7 @@ int wxDisplayFactoryMacOSX::GetFromWindow(const wxWindow *window) wxASSERT(err == CGDisplayNoErr); const double scaleWindow = tlw->GetContentScaleFactor(); - for ( int i = 0 ; i < theCount; ++i ) + for ( unsigned i = 0; i < theCount; ++i ) { // find a screen intersecting having the same contentScale as the window itself double scale = wxGetScaleFactor(theIDs[i]);