FolderMemoryCard: Don't assume that C limits are defined.

This commit is contained in:
Admiral H. Curtiss 2015-06-27 22:06:10 +02:00
parent a886f6e7e1
commit 40e6a5c515
1 changed files with 1 additions and 1 deletions

View File

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