From 2492b561385859b7ef76fe816a8dc845f0b9bd09 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 01:53:51 +0300 Subject: Fix some casts between signed and unsigned in some files. --- src/gui/widgets/widget2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/widget2.h') diff --git a/src/gui/widgets/widget2.h b/src/gui/widgets/widget2.h index 4c5a8c59a..8e56a2477 100644 --- a/src/gui/widgets/widget2.h +++ b/src/gui/widgets/widget2.h @@ -36,7 +36,7 @@ class Widget2 notfinal } inline const Color &getThemeColor(const ThemeColorIdT type, - const int alpha = 255) + const unsigned int alpha = 255U) const A_WARN_UNUSED { return theme->getColor(type + mPaletteOffset, alpha); @@ -50,7 +50,7 @@ class Widget2 notfinal return Palette::BLACK; const ThemeColorIdT colorId = theme->getIdByChar(c, valid); if (valid) - return theme->getColor(colorId + mPaletteOffset, 255); + return theme->getColor(colorId + mPaletteOffset, 255U); else return Palette::BLACK; } -- cgit v1.2.3-70-g09d2