Skip to content
Permalink
Browse files
Merge pull request #6542 from lioncash/cast
BPStructs: Remove an unnecessary pointer cast in GetBPRegInfo
  • Loading branch information
leoetlino committed Mar 27, 2018
2 parents 98f62a3 + 9feb188 commit 3c61ee5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit 3c61ee5

Please sign in to comment.