Windows: Fix x64 build conversion from 'size_t' to 'int' error (issue #2054)
This commit is contained in:
parent
b4216db56c
commit
de18fc4292
|
@ -82,7 +82,7 @@ int WriteFile(const std::string& path, const char* data, int size) {
|
||||||
size_t write = fwrite(data + written, 1, size - written, file);
|
size_t write = fwrite(data + written, 1, size - written, file);
|
||||||
if (write == 0)
|
if (write == 0)
|
||||||
break;
|
break;
|
||||||
written += write;
|
written += static_cast<int>(write);
|
||||||
} while (written < size);
|
} while (written < size);
|
||||||
|
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
|
Loading…
Reference in New Issue