From 1834c83d5a2684cabcb60b5d90cd5f09d66442ae Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 18 Sep 2024 09:34:09 -0700 Subject: [PATCH] testplatform: make sure bool is 1 byte --- test/testplatform.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/testplatform.c b/test/testplatform.c index 271911cc14..7d780a3e3f 100644 --- a/test/testplatform.c +++ b/test/testplatform.c @@ -48,6 +48,12 @@ static int TestTypes(bool verbose) { int error = 0; + if (badsize(sizeof(bool), 1)) { + if (verbose) { + SDL_Log("sizeof(bool) != 1, instead = %u\n", (unsigned int)sizeof(bool)); + } + ++error; + } if (badsize(sizeof(Uint8), 1)) { if (verbose) { SDL_Log("sizeof(Uint8) != 1, instead = %u\n", (unsigned int)sizeof(Uint8));