mirror of https://github.com/PCSX2/pcsx2.git
FolderMemoryCard: Don't assume that C limits are defined.
This commit is contained in:
parent
a886f6e7e1
commit
40e6a5c515
|
@ -1012,7 +1012,7 @@ void FolderMemoryCard::SetSlot( uint slot ) {
|
|||
|
||||
u32 FolderMemoryCard::GetSizeInClusters() {
|
||||
const u32 clusters = m_superBlock.data.clusters_per_card;
|
||||
if ( clusters > 0 && clusters < UINT32_MAX ) {
|
||||
if ( clusters > 0 && clusters < 0xFFFFFFFFu ) {
|
||||
return clusters;
|
||||
} else {
|
||||
return TotalClusters;
|
||||
|
|
Loading…
Reference in New Issue