DiscIO: Get rid of unsafe cast

This commit is contained in:
Stevoisiak 2015-02-28 22:03:53 -05:00
parent 5346e791bc
commit 492aa5c391
2 changed files with 6 additions and 6 deletions

View File

@ -149,9 +149,9 @@ u64 CVolumeGC::GetRawSize() const
bool CVolumeGC::IsDiscTwo() const bool CVolumeGC::IsDiscTwo() const
{ {
bool discTwo = false; u8 disc_two_check;
Read(6,1, (u8*) &discTwo); Read(6, 1, &disc_two_check);
return discTwo; return (disc_two_check == 1);
} }
CVolumeGC::StringDecoder CVolumeGC::GetStringDecoder(ECountry country) CVolumeGC::StringDecoder CVolumeGC::GetStringDecoder(ECountry country)

View File

@ -239,9 +239,9 @@ bool CVolumeWiiCrypted::IsWiiDisc() const
bool CVolumeWiiCrypted::IsDiscTwo() const bool CVolumeWiiCrypted::IsDiscTwo() const
{ {
bool discTwo = false; u8 disc_two_check;
m_pReader->Read(6, 1, (u8*)&discTwo); m_pReader->Read(6, 1, &disc_two_check);
return discTwo; return (disc_two_check == 1);
} }