Windows: Fix x64 build conversion from 'size_t' to 'int' error (issue #2054)
This commit is contained in:
parent
7843d6cdff
commit
7f76148993
|
@ -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);
|
||||
if (write == 0)
|
||||
break;
|
||||
written += write;
|
||||
written += static_cast<int>(write);
|
||||
} while (written < size);
|
||||
|
||||
fclose(file);
|
||||
|
|
Loading…
Reference in New Issue