use 'U' suffix on constants instead of (unsigned int) cast.
authorOzkan Sezer <sezeroz@gmail.com>
Fri, 30 Aug 2019 11:35:20 +0300
changeset 130433cdcccbeec91
parent 13042 a4f7b983fbe8
child 13044 99f2845397a4
use 'U' suffix on constants instead of (unsigned int) cast.
src/core/android/SDL_android.c
src/joystick/controller_type.h
src/video/SDL_RLEaccel.c
     1.1 --- a/src/core/android/SDL_android.c	Fri Aug 30 09:00:06 2019 +0200
     1.2 +++ b/src/core/android/SDL_android.c	Fri Aug 30 11:35:20 2019 +0300
     1.3 @@ -2400,7 +2400,7 @@
     1.4      if (messageboxdata->colorScheme) {
     1.5          colors = (*env)->NewIntArray(env, SDL_MESSAGEBOX_COLOR_MAX);
     1.6          for (i = 0; i < SDL_MESSAGEBOX_COLOR_MAX; ++i) {
     1.7 -            temp = ((unsigned int)0xFF << 24) |
     1.8 +            temp = (0xFFU << 24) |
     1.9                     (messageboxdata->colorScheme->colors[i].r << 16) |
    1.10                     (messageboxdata->colorScheme->colors[i].g << 8) |
    1.11                     (messageboxdata->colorScheme->colors[i].b << 0);
     2.1 --- a/src/joystick/controller_type.h	Fri Aug 30 09:00:06 2019 +0200
     2.2 +++ b/src/joystick/controller_type.h	Fri Aug 30 11:35:20 2019 +0300
     2.3 @@ -61,7 +61,7 @@
     2.4  	k_eControllertype_GenericMouse = 800,
     2.5  } EControllerType;
     2.6  
     2.7 -#define MAKE_CONTROLLER_ID( nVID, nPID )	(unsigned int)( (unsigned int)nVID << 16 | nPID )
     2.8 +#define MAKE_CONTROLLER_ID( nVID, nPID )	(unsigned int)( (unsigned int)nVID << 16 | (unsigned int)nPID )
     2.9  typedef struct
    2.10  {
    2.11  	unsigned int m_unDeviceID;
     3.1 --- a/src/video/SDL_RLEaccel.c	Fri Aug 30 09:00:06 2019 +0200
     3.2 +++ b/src/video/SDL_RLEaccel.c	Fri Aug 30 11:35:20 2019 +0300
     3.3 @@ -295,10 +295,10 @@
     3.4      } while(0)
     3.5  
     3.6  #define ALPHA_BLIT16_565_50(to, from, length, bpp, alpha)       \
     3.7 -    ALPHA_BLIT16_50(to, from, length, bpp, alpha, (unsigned int)0xf7de)
     3.8 +    ALPHA_BLIT16_50(to, from, length, bpp, alpha, 0xf7deU)
     3.9  
    3.10  #define ALPHA_BLIT16_555_50(to, from, length, bpp, alpha)       \
    3.11 -    ALPHA_BLIT16_50(to, from, length, bpp, alpha, (unsigned int)0xfbde)
    3.12 +    ALPHA_BLIT16_50(to, from, length, bpp, alpha, 0xfbdeU)
    3.13  
    3.14  #define CHOOSE_BLIT(blitter, alpha, fmt)                        \
    3.15      do {                                                        \