From 6906c50e8b61a4ad194d147d2dff46b0b3c60390 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 8 Apr 2024 15:43:03 -0400 Subject: [PATCH] assert: SDL_AssertData::always_ignore should be an SDL_bool, not an int. --- include/SDL3/SDL_assert.h | 2 +- src/SDL_assert.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL3/SDL_assert.h b/include/SDL3/SDL_assert.h index c2ecadbcf7..9d6cba57f0 100644 --- a/include/SDL3/SDL_assert.h +++ b/include/SDL3/SDL_assert.h @@ -127,7 +127,7 @@ typedef enum typedef struct SDL_AssertData { - int always_ignore; + SDL_bool always_ignore; unsigned int trigger_count; const char *condition; const char *filename; diff --git a/src/SDL_assert.c b/src/SDL_assert.c index 3f0d509056..938008c00f 100644 --- a/src/SDL_assert.c +++ b/src/SDL_assert.c @@ -374,7 +374,7 @@ SDL_AssertState SDL_ReportAssertion(SDL_AssertData *data, const char *func, cons switch (state) { case SDL_ASSERTION_ALWAYS_IGNORE: state = SDL_ASSERTION_IGNORE; - data->always_ignore = 1; + data->always_ignore = SDL_TRUE; break; case SDL_ASSERTION_IGNORE: