mirror of https://github.com/libsdl-org/SDL.git
testplatform: make sure bool is 1 byte
This commit is contained in:
parent
026d3c2306
commit
1834c83d5a
|
|
@ -48,6 +48,12 @@ static int TestTypes(bool verbose)
|
||||||
{
|
{
|
||||||
int error = 0;
|
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 (badsize(sizeof(Uint8), 1)) {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
SDL_Log("sizeof(Uint8) != 1, instead = %u\n", (unsigned int)sizeof(Uint8));
|
SDL_Log("sizeof(Uint8) != 1, instead = %u\n", (unsigned int)sizeof(Uint8));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue