Explorar o código

Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'.

Sam Lantinga %!s(int64=2) %!d(string=hai) anos
pai
achega
7f2e16db8b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/joystick/virtual/SDL_virtualjoystick.c

+ 1 - 1
src/joystick/virtual/SDL_virtualjoystick.c

@@ -119,7 +119,7 @@ SDL_JoystickID SDL_JoystickAttachVirtualInner(const SDL_VirtualJoystickDesc *des
     }
     }
     if (desc->version != SDL_VIRTUAL_JOYSTICK_DESC_VERSION) {
     if (desc->version != SDL_VIRTUAL_JOYSTICK_DESC_VERSION) {
         /* Is this an old version that we can support? */
         /* Is this an old version that we can support? */
-        return SDL_SetError("Unsupported virtual joystick description version %d", desc->version);
+        return SDL_SetError("Unsupported virtual joystick description version %u", desc->version);
     }
     }
 
 
     hwdata = SDL_calloc(1, sizeof(joystick_hwdata));
     hwdata = SDL_calloc(1, sizeof(joystick_hwdata));