aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/mips_mem_ram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/mips_mem_ram.cpp')
-rw-r--r--src/shared/mips_mem_ram.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}