mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 10:18:40 +12: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
|
@ -274,7 +274,7 @@ bool update_manager::handle_json(const QByteArray& data, bool automatic)
|
|||
|
||||
bool update_manager::handle_rpcs3(const QByteArray& rpcs3_data, bool /*automatic*/)
|
||||
{
|
||||
if (m_expected_size != rpcs3_data.size())
|
||||
if (m_expected_size != rpcs3_data.size() + 0u)
|
||||
{
|
||||
update_log.error("[Auto-updater] Download size mismatch: %d expected: %d", rpcs3_data.size(), m_expected_size);
|
||||
return false;
|
||||
|
@ -340,7 +340,7 @@ bool update_manager::handle_rpcs3(const QByteArray& rpcs3_data, bool /*automatic
|
|||
update_log.error("[Auto-updater] Failed to create new AppImage file: %s", replace_path);
|
||||
return false;
|
||||
}
|
||||
if (new_appimage.write(rpcs3_data.data(), rpcs3_data.size()) != rpcs3_data.size())
|
||||
if (new_appimage.write(rpcs3_data.data(), rpcs3_data.size()) != rpcs3_data.size() + 0u)
|
||||
{
|
||||
update_log.error("[Auto-updater] Failed to write new AppImage file: %s", replace_path);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue