mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Explicitly cast size_t to integer types
This commit is contained in:
parent
146e43b6ec
commit
d57124d075
14 changed files with 30 additions and 29 deletions
|
|
@ -451,7 +451,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
|||
}
|
||||
case CELL_SAVEDATA_FOCUSPOS_LISTTAIL:
|
||||
{
|
||||
focused = save_entries.size() - 1;
|
||||
focused = ::size32(save_entries) - 1;
|
||||
break;
|
||||
}
|
||||
case CELL_SAVEDATA_FOCUSPOS_LATEST:
|
||||
|
|
@ -512,7 +512,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
|||
{
|
||||
if (!file.is_directory)
|
||||
{
|
||||
doneGet->sizeKB += ::align(file.size, 4096);
|
||||
doneGet->sizeKB += static_cast<s32>(::align(file.size, 4096));
|
||||
|
||||
if (!fs::remove_file(del_path + file.name))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue