summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-03-27 12:04:10 -0400
committerLioncash <mathew1800@gmail.com>2018-03-27 12:04:16 -0400
commit9feb18866b42007212f4e6961b56c0b4df5c29a9 (patch)
tree01edc26a5159ff184dea1475a9df5754354bfc8f /Source/Core/VideoCommon/BPStructs.cpp
parentcebdf7e77517df4689a414e213f771c3e46b0ea5 (diff)
BPStructs: Remove an unnecessary pointer cast in GetBPRegInfo
swap32 has an overload that accepts a u8*, performing the same behavior in a well-defined manner.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-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