From 7bbe802a14f39e3a26030de224f16dbf616534d2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 25 Feb 2018 21:36:45 +0100 Subject: [PATCH] fb_generic: fix compiler warning Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/4ce4c6f2fe0d0cba68fd8cd0dfd54b7bf624d516 Author: vanhofen Date: 2018-02-25 (Sun, 25 Feb 2018) Origin message was: ------------------ - fb_generic: fix compiler warning --- src/driver/fb_generic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/fb_generic.cpp b/src/driver/fb_generic.cpp index 0c4d14264..b64edceda 100644 --- a/src/driver/fb_generic.cpp +++ b/src/driver/fb_generic.cpp @@ -1704,9 +1704,9 @@ void CFrameBuffer::blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32 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; if (xp >= xc || yp >= yc) {