mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-06 18:06:26 +00:00
Re-add SDL_assert() with non boolean ptr syntax (#8530)
This commit is contained in:
@@ -59,7 +59,7 @@ static SDL_hapticlist_item *HapticByOrder(int index)
|
||||
return NULL;
|
||||
}
|
||||
while (index > 0) {
|
||||
SDL_assert(item);
|
||||
SDL_assert(item != NULL);
|
||||
--index;
|
||||
item = item->next;
|
||||
}
|
||||
|
@@ -193,7 +193,7 @@ static SDL_hapticlist_item *HapticByDevIndex(int device_index)
|
||||
}
|
||||
|
||||
while (device_index > 0) {
|
||||
SDL_assert(item);
|
||||
SDL_assert(item != NULL);
|
||||
--device_index;
|
||||
item = item->next;
|
||||
}
|
||||
|
@@ -188,7 +188,7 @@ static SDL_hapticlist_item *HapticByDevIndex(int device_index)
|
||||
}
|
||||
|
||||
while (device_index > 0) {
|
||||
SDL_assert(item);
|
||||
SDL_assert(item != NULL);
|
||||
--device_index;
|
||||
item = item->next;
|
||||
}
|
||||
|
@@ -120,7 +120,7 @@ static SDL_hapticlist_item *HapticByDevIndex(int device_index)
|
||||
}
|
||||
|
||||
while (device_index > 0) {
|
||||
SDL_assert(item);
|
||||
SDL_assert(item != NULL);
|
||||
--device_index;
|
||||
item = item->next;
|
||||
}
|
||||
|
Reference in New Issue
Block a user