aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sdlscrn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdlscrn.c b/sdlscrn.c
index 7862ad5..7018277 100644
--- a/sdlscrn.c
+++ b/sdlscrn.c
@@ -155,7 +155,7 @@ static void unlock_screen(struct surface *s)
{
if (s->lock_count > 0)
SDL_UnlockSurface(s->surf);
- else if (s->lock_count < 0)
+ else if (unlikely(s->lock_count < 0))
abort(); /* SHOULD NEVER HAPPEN */
s->lock_count--;