From ca3d02fc6188ce870f7f0f6680aa26ee960bd534 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 4 Mar 2025 19:45:22 +0100 Subject: [PATCH] static analysis: ensure is always false --- rpcs3/Emu/RSX/Common/simple_array.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/simple_array.hpp b/rpcs3/Emu/RSX/Common/simple_array.hpp index 8ae4179a0c..0fec530852 100644 --- a/rpcs3/Emu/RSX/Common/simple_array.hpp +++ b/rpcs3/Emu/RSX/Common/simple_array.hpp @@ -246,7 +246,7 @@ namespace rsx return pos; } - ensure(_loc < _size); + AUDIT(_loc < _size); const auto remaining = (_size - _loc); memmove(pos + 1, pos, remaining * sizeof(Ty)); @@ -274,7 +274,7 @@ namespace rsx return pos; } - ensure(_loc < _size); + AUDIT(_loc < _size); const u32 remaining = (_size - _loc); memmove(pos + 1, pos, remaining * sizeof(Ty));