(RGUI) Fix LGTM warning - 'Multiplication result converted to larger type'

This commit is contained in:
jdgleaver 2021-04-02 10:16:47 +01:00
parent 371d0b7395
commit 72f08bb1b4

View File

@ -2266,7 +2266,7 @@ static void rgui_render_background(rgui_t *rgui,
/* Otherwise copy background to framebuffer */
else if (background_buf->data)
memcpy(frame_buf->data, background_buf->data,
frame_buf->width * frame_buf->height * sizeof(uint16_t));
(size_t)frame_buf->width * (size_t)frame_buf->height * sizeof(uint16_t));
}
static void rgui_render_fs_thumbnail(rgui_t *rgui,