فهرست منبع

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

Ryan C. Gordon 1 سال پیش
والد
کامیت
6906c50e8b
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      include/SDL3/SDL_assert.h
  2. 1 1
      src/SDL_assert.c

+ 1 - 1
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;

+ 1 - 1
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: