summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorLéo Lam <leolino.lam@gmail.com>2018-03-27 18:12:56 +0200
committerGitHub <noreply@github.com>2018-03-27 18:12:56 +0200
commit3c61ee5f7f66f84d23e30e86d42e4f100ceedcfa (patch)
treec96032037f120ca4bb39512b664727f76ef0c339 /Source/Core/VideoCommon
parent98f62a3ecdbc8f005f062bb9cf195d0b72587c47 (diff)
parent9feb18866b42007212f4e6961b56c0b4df5c29a9 (diff)
Merge pull request #6542 from lioncash/cast
BPStructs: Remove an unnecessary pointer cast in GetBPRegInfo
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index 6a78dc6dd7..0078633b08 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -718,7 +718,7 @@ void GetBPRegInfo(const u8* data, std::string* name, std::string* desc)
const char* no_yes[2] = {"No", "Yes"};
u8 cmd = data[0];
- u32 cmddata = Common::swap32(*(u32*)data) & 0xFFFFFF;
+ u32 cmddata = Common::swap32(data) & 0xFFFFFF;
switch (cmd)
{
// Macro to set the register name and make sure it was written correctly via compile time assertion