From 081d37380546cb269f724c008bd34897c5a237df Mon Sep 17 00:00:00 2001 From: George Punter Date: Tue, 25 Oct 2016 09:35:29 +0100 Subject: Added brackets for peace of mind --- src/shared/mips_mem_ram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/mips_mem_ram.cpp b/src/shared/mips_mem_ram.cpp index 81ae63f..179c8fd 100644 --- a/src/shared/mips_mem_ram.cpp +++ b/src/shared/mips_mem_ram.cpp @@ -57,7 +57,7 @@ static mips_error mips_mem_read_write( if(0 != (address % length) ){ return mips_ExceptionInvalidAlignment; } - if((address+length) > mem->length || address > (UINT32_MAX - length)){ // A subtle bug here, maybe? + if(((address+length) > mem->length) || (address > (UINT32_MAX - length))){ // A subtle bug here, maybe? return mips_ExceptionInvalidAddress; } -- cgit