UI/updater: Fix a few type size mismatch warnings
This commit is contained in:
@@ -256,7 +256,7 @@ try {
|
||||
|
||||
vector<uint8_t> newData;
|
||||
try {
|
||||
newData.resize(newsize);
|
||||
newData.resize((size_t)newsize);
|
||||
} catch (...) {
|
||||
throw int(-1);
|
||||
}
|
||||
|
@@ -1171,7 +1171,7 @@ static bool Update(wchar_t *cmdLine)
|
||||
if (!RunDownloadWorkers(2))
|
||||
return false;
|
||||
|
||||
if (completedUpdates != updates.size()) {
|
||||
if ((size_t)completedUpdates != updates.size()) {
|
||||
Status(L"Update failed to download all files.");
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user