From 04dbe2ab76a9d940dec8f7aa2b05a9e8fdbad1d7 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 3 Feb 2019 21:34:35 +0100 Subject: [PATCH] fb_accel_cs_hd1: fix compile warning Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/0053e522a918d20e40f419cb390056f275f5a002 Author: vanhofen Date: 2019-02-03 (Sun, 03 Feb 2019) Origin message was: ------------------ - fb_accel_cs_hd1: fix compile warning ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/fb_accel_cs_hd1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/fb_accel_cs_hd1.cpp b/src/driver/fb_accel_cs_hd1.cpp index c3cc11b23..5ed0d07af 100644 --- a/src/driver/fb_accel_cs_hd1.cpp +++ b/src/driver/fb_accel_cs_hd1.cpp @@ -288,9 +288,9 @@ void CFbAccelCSHD1::blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint3 yc = (height > yRes) ? yRes : height; //NI - if (unscaled_w != 0 && (int)unscaled_w < xc) + if (unscaled_w != 0 && unscaled_w < xc) xc = unscaled_w; - if (unscaled_h != 0 && (int)unscaled_h < yc) + if (unscaled_h != 0 && unscaled_h < yc) yc = unscaled_h; u32 cmd;