The C standard defines a boolean expression as a signed integer value.
Microsoft came to the same conclusion: https://devblogs.microsoft.com/oldnewthing/20110328-00/?p=11113 Fixes https://github.com/libsdl-org/SDL/issues/8761
This commit is contained in:
parent
e3d50619f8
commit
2faae8457d
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ char *alloca();
|
||||||
*/
|
*/
|
||||||
#define SDL_FALSE 0
|
#define SDL_FALSE 0
|
||||||
#define SDL_TRUE 1
|
#define SDL_TRUE 1
|
||||||
typedef unsigned int SDL_bool;
|
typedef int SDL_bool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A signed 8-bit integer type.
|
* A signed 8-bit integer type.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue