Ver Fonte

Fixed warning: ordered comparison of pointer with integer zero

Sam Lantinga há 9 meses atrás
pai
commit
0410328b15
1 ficheiros alterados com 1 adições e 3 exclusões
  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();
 }