Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Nov 10, 2023
1 parent bd94f95 commit 5eb7836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDL_dataqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static SDL_DataQueuePacket *AllocateDataQueuePacket(SDL_DataQueue *queue)
packet->startpos = 0;
packet->next = NULL;

SDL_assert((queue->head) == (queue->queued_bytes != 0));
SDL_assert((queue->head != NULL) == (queue->queued_bytes != 0));
if (!queue->tail) {
queue->head = packet;
} else {
Expand Down Expand Up @@ -292,7 +292,7 @@ SDL_ReadFromDataQueue(SDL_DataQueue *queue, void *_buf, const size_t _len)
}
}

SDL_assert((queue->head) == (queue->queued_bytes != 0));
SDL_assert((queue->head != NULL) == (queue->queued_bytes != 0));

if (!queue->head) {
queue->tail = NULL; /* in case we drained the queue entirely. */
Expand Down

0 comments on commit 5eb7836

Please sign in to comment.