summaryrefslogtreecommitdiff
path: root/Source/Core/Common/CodeBlock.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-01-08 18:05:28 -0500
committerLioncash <mathew1800@gmail.com>2017-01-08 18:40:09 -0500
commit00baf193ac00577c5bafccf0cb06a2dcb8a9bebe (patch)
treea990ace8562290c38ca1e109d370623a267995c8 /Source/Core/Common/CodeBlock.h
parent5135445298af66d76d0fab084ebcdf60ebf45042 (diff)
CodeBlock: Const correctness for IsInSpace
Diffstat (limited to 'Source/Core/Common/CodeBlock.h')
-rw-r--r--Source/Core/Common/CodeBlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/CodeBlock.h b/Source/Core/Common/CodeBlock.h
index 5696976a5a..7bd554b9aa 100644
--- a/Source/Core/Common/CodeBlock.h
+++ b/Source/Core/Common/CodeBlock.h
@@ -71,7 +71,7 @@ public:
}
}
- bool IsInSpace(u8* ptr) const { return (ptr >= region) && (ptr < (region + region_size)); }
+ bool IsInSpace(const u8* ptr) const { return ptr >= region && ptr < (region + region_size); }
// Cannot currently be undone. Will write protect the entire code region.
// Start over if you need to change the code (call FreeCodeSpace(), AllocCodeSpace()).
void WriteProtect() { Common::WriteProtectMemory(region, region_size, true); }