From 7681695875db9cada1e50db859a035e6c7d7a4c5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 29 Dec 2023 17:11:54 -0800 Subject: [PATCH] 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; --- include/SDL3/SDL_stdinc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h index 90cf90530b..a257513f3a 100644 --- a/include/SDL3/SDL_stdinc.h +++ b/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.