From 8a2a76da1e1f5048236a98013f4665e2c80553f9 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 18 Jan 2021 13:49:59 +0300 Subject: [PATCH] texture_cache: fix some warnings in AUDIT --- rpcs3/Emu/RSX/Common/texture_cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/texture_cache.h b/rpcs3/Emu/RSX/Common/texture_cache.h index cee78b7490..26a2aa793a 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -590,7 +590,7 @@ namespace rsx // Sanity checks AUDIT(exclusion_range.is_page_range()); - AUDIT(data.cause.is_read() && !excluded->is_flushable() || data.cause.skip_fbos() || !exclusion_range.overlaps(data.fault_range)); + AUDIT((data.cause.is_read() && !excluded->is_flushable()) || data.cause.skip_fbos() || !exclusion_range.overlaps(data.fault_range)); // Apply exclusion ranges_to_unprotect.exclude(exclusion_range); @@ -932,7 +932,7 @@ namespace rsx else { // This is a read and all overlapping sections were RO and were excluded (except for cause == superseded_by_fbo) - AUDIT(cause.skip_fbos() || cause.is_read() && !result.sections_to_exclude.empty()); + AUDIT(cause.skip_fbos() || (cause.is_read() && !result.sections_to_exclude.empty())); // We did not handle this violation result.clear_sections();