mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Fix signed-unsigned comparisons and mark warning as error (part 2).
This commit is contained in:
parent
771eff273b
commit
92e3eaf3ff
68 changed files with 194 additions and 202 deletions
|
|
@ -443,7 +443,7 @@ error_code cellFsReadWithOffset(ppu_thread& ppu, u32 fd, u64 offset, vm::ptr<voi
|
|||
// Write size read
|
||||
if (nread)
|
||||
{
|
||||
*nread = rc && rc != CELL_EFSSPECIFIC ? 0 : arg->out_size.value();
|
||||
*nread = rc && rc + 0u != CELL_EFSSPECIFIC ? 0 : arg->out_size.value();
|
||||
}
|
||||
|
||||
if (!rc && arg->out_code)
|
||||
|
|
@ -485,7 +485,7 @@ error_code cellFsWriteWithOffset(ppu_thread& ppu, u32 fd, u64 offset, vm::cptr<v
|
|||
// Write size written
|
||||
if (nwrite)
|
||||
{
|
||||
*nwrite = rc && rc != CELL_EFSSPECIFIC ? 0 : arg->out_size.value();
|
||||
*nwrite = rc && rc + 0u != CELL_EFSSPECIFIC ? 0 : arg->out_size.value();
|
||||
}
|
||||
|
||||
if (!rc && arg->out_code)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue