From 1f78f8a9c601fff26c0ca3327fd428486a7715ff Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 4 Nov 2022 18:47:40 +0800 Subject: [PATCH] Fix Error: src/cscaledbitmap.cxx:456:26: error: result of comparison of constant 256 with expression of type 'uint8_t' (aka 'unsigned char') is always true Signed-off-by: Xiang Xiao --- graphics/nxwidgets/src/cscaledbitmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/nxwidgets/src/cscaledbitmap.cxx b/graphics/nxwidgets/src/cscaledbitmap.cxx index 063e0e3eb..351575843 100644 --- a/graphics/nxwidgets/src/cscaledbitmap.cxx +++ b/graphics/nxwidgets/src/cscaledbitmap.cxx @@ -433,7 +433,7 @@ bool CScaledBitmap::scaleColor(FAR const struct rgbcolor_s &incolor1, FAR const struct rgbcolor_s &incolor2, b16_t fraction, FAR struct rgbcolor_s &outcolor) { - uint8_t component; + uint32_t component; b16_t red; b16_t green; b16_t blue;