Просмотр исходного кода

Fixed warning: ordered comparison of pointer with integer zero

Sam Lantinga 9 месяцев назад
Родитель
Сommit
0410328b15
1 измененных файлов с 1 добавлено и 3 удалено
  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;
         prev = entry;
     }
     }
-    if (s_tracked_allocations < 0) {
-        s_unknown_frees += 1;
-    }
+    s_unknown_frees += 1;
     UNLOCK_ALLOCATOR();
     UNLOCK_ALLOCATOR();
 }
 }