From 1aff8c4eb1ed14f9add1e16ea2e5a683c65aacb8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 13 Dec 2016 18:57:09 -0500 Subject: [PATCH] BlockCache: Use const_cast --- Source/Core/Core/PowerPC/Jit64Common/BlockCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64Common/BlockCache.cpp b/Source/Core/Core/PowerPC/Jit64Common/BlockCache.cpp index c19f471d19..d39eac7b5a 100644 --- a/Source/Core/Core/PowerPC/Jit64Common/BlockCache.cpp +++ b/Source/Core/Core/PowerPC/Jit64Common/BlockCache.cpp @@ -33,8 +33,8 @@ void JitBlockCache::WriteLinkBlock(const JitBlock::LinkData& source, const JitBl void JitBlockCache::WriteDestroyBlock(const JitBlock& block) { // Only clear the entry points as we might still be within this block. - Gen::XEmitter emit((u8*)block.checkedEntry); + Gen::XEmitter emit(const_cast(block.checkedEntry)); emit.INT3(); - Gen::XEmitter emit2((u8*)block.normalEntry); + Gen::XEmitter emit2(const_cast(block.normalEntry)); emit2.INT3(); }