mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
fix various instances of -1 being assigned to unsigned types
This commit is contained in:
@ -48,7 +48,7 @@ private:
|
||||
CISOFileReader(File::IOFile file);
|
||||
|
||||
typedef u16 MapType;
|
||||
static const MapType UNUSED_BLOCK_ID = -1;
|
||||
static const MapType UNUSED_BLOCK_ID = UINT16_MAX;
|
||||
|
||||
File::IOFile m_file;
|
||||
u64 m_size;
|
||||
|
@ -35,7 +35,7 @@ const size_t VolumeDirectory::MAX_ID_LENGTH;
|
||||
|
||||
VolumeDirectory::VolumeDirectory(const std::string& directory, bool is_wii,
|
||||
const std::string& apploader, const std::string& dol)
|
||||
: m_data_start_address(-1), m_disk_header(DISKHEADERINFO_ADDRESS),
|
||||
: m_data_start_address(UINT64_MAX), m_disk_header(DISKHEADERINFO_ADDRESS),
|
||||
m_disk_header_info(std::make_unique<SDiskHeaderInfo>()), m_fst_address(0), m_dol_address(0)
|
||||
{
|
||||
m_root_directory = ExtractDirectoryName(directory);
|
||||
|
@ -32,7 +32,8 @@ namespace DiscIO
|
||||
constexpr u64 PARTITION_DATA_OFFSET = 0x20000;
|
||||
|
||||
VolumeWii::VolumeWii(std::unique_ptr<BlobReader> reader)
|
||||
: m_pReader(std::move(reader)), m_game_partition(PARTITION_NONE), m_last_decrypted_block(-1)
|
||||
: m_pReader(std::move(reader)), m_game_partition(PARTITION_NONE),
|
||||
m_last_decrypted_block(UINT64_MAX)
|
||||
{
|
||||
_assert_(m_pReader);
|
||||
|
||||
|
Reference in New Issue
Block a user