From de42b6b7912a7881a0ec94c508476bfd9b28d0e8 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Tue, 11 Jun 2019 13:37:55 -0230 Subject: [PATCH] Fix signed/unsigned warning in clang. --- src/gui/Dialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/Dialog.cxx b/src/gui/Dialog.cxx index 027015e2e..4b307d3e0 100644 --- a/src/gui/Dialog.cxx +++ b/src/gui/Dialog.cxx @@ -98,7 +98,7 @@ void Dialog::open() // dialogs cause drawing to occur within loadConfig() if (_surface == nullptr) _surface = instance().frameBuffer().allocateSurface(_w, _h); - else if (_w > _surface->width() || _h > _surface->height()) + else if (uInt32(_w) > _surface->width() || uInt32(_h) > _surface->height()) _surface->resize(_w, _h); _surface->setSrcSize(_w, _h); _layer = parent().addDialog(this);