assert: SDL_AssertData::always_ignore should be an SDL_bool, not an int.

This commit is contained in:
Ryan C. Gordon 2024-04-08 15:43:03 -04:00
parent 34f4484f48
commit 6906c50e8b
No known key found for this signature in database
GPG key ID: FA148B892AB48044
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ typedef enum
typedef struct SDL_AssertData typedef struct SDL_AssertData
{ {
int always_ignore; SDL_bool always_ignore;
unsigned int trigger_count; unsigned int trigger_count;
const char *condition; const char *condition;
const char *filename; const char *filename;

View file

@ -374,7 +374,7 @@ SDL_AssertState SDL_ReportAssertion(SDL_AssertData *data, const char *func, cons
switch (state) { switch (state) {
case SDL_ASSERTION_ALWAYS_IGNORE: case SDL_ASSERTION_ALWAYS_IGNORE:
state = SDL_ASSERTION_IGNORE; state = SDL_ASSERTION_IGNORE;
data->always_ignore = 1; data->always_ignore = SDL_TRUE;
break; break;
case SDL_ASSERTION_IGNORE: case SDL_ASSERTION_IGNORE: