shithub: choc

Download patch

ref: b5d5725ce1a29fe00d9536873d765895624dbe60
parent: fdf3b4c33e61cbdd05d9408e3710c0449f9194fd
author: Turo Lamminen <turol@iki.fi>
date: Tue Oct 18 14:54:43 EDT 2022

video: Fix signedness issue in I_InitWindowIcon

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -906,8 +906,8 @@
 
     surface = SDL_CreateRGBSurfaceFrom((void *) icon_data, icon_w, icon_h,
                                        32, icon_w * 4,
-                                       0xff << 24, 0xff << 16,
-                                       0xff << 8, 0xff << 0);
+                                       0xffu << 24, 0xffu << 16,
+                                       0xffu << 8, 0xffu << 0);
 
     SDL_SetWindowIcon(screen, surface);
     SDL_FreeSurface(surface);