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.
This commit is contained in:
Lioncash 2018-03-27 12:04:10 -04:00
parent cebdf7e775
commit 9feb18866b
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
1 changed files with 1 additions and 1 deletions

View File

@ -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