From 8c9f22aae930b3996e8b7a70b340b2836b82922e Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 21 Oct 2021 18:57:35 +0200 Subject: [PATCH] cc_item_progressbar.cpp fix type conversion Wconversion Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d910fc032612502a5e32d0ae3f198e3e27f78395 Author: Thilo Graf Date: 2021-10-21 (Thu, 21 Oct 2021) ------------------ This commit was generated by Migit --- src/gui/components/cc_item_progressbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_progressbar.cpp b/src/gui/components/cc_item_progressbar.cpp index df5c51ad2..49049aabf 100644 --- a/src/gui/components/cc_item_progressbar.cpp +++ b/src/gui/components/cc_item_progressbar.cpp @@ -171,7 +171,7 @@ void CProgressBarCache::pbcPaint(int x, int y, int pbc_active_width, int pbc_pas { y += yoff; static CFrameBuffer *frameBuffer = CFrameBuffer::getInstance(); - unsigned int stride = frameBuffer->getStride() / sizeof(fb_pixel_t); + unsigned int stride = frameBuffer->getStride() / (unsigned int)sizeof(fb_pixel_t); fb_pixel_t *p = frameBuffer->getFrameBufferPointer() + y * stride + x; int off = stride - pbc_width; if (pbc_active_width > pbc_width)