Forráskód Böngészése

Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions"

This reverts commit 61db102da90227b5dbc52c03dc9848228591e49d.

This causes the build to fail:
SDL_waylandwindow.c:1876:45: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion]
            wind->fullscreen_was_positioned = SDL_TRUE;
Sam Lantinga 1 éve
szülő
commit
7681695875
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      include/SDL3/SDL_stdinc.h

+ 1 - 1
include/SDL3/SDL_stdinc.h

@@ -133,7 +133,7 @@ char *alloca();
  */
 #define SDL_FALSE 0
 #define SDL_TRUE 1
-typedef int SDL_bool;
+typedef unsigned int SDL_bool;
 
 /**
  * A signed 8-bit integer type.