Browse Source

Fixed warning: ordered comparison of pointer with integer zero

Sam Lantinga 3 months ago
parent
commit
0410328b15
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/test/SDL_test_memory.c

+ 1 - 3
src/test/SDL_test_memory.c

@@ -212,9 +212,7 @@ static void SDL_UntrackAllocation(void *mem)
         }
         prev = entry;
     }
-    if (s_tracked_allocations < 0) {
-        s_unknown_frees += 1;
-    }
+    s_unknown_frees += 1;
     UNLOCK_ALLOCATOR();
 }