Windows: Fix x64 build conversion from 'size_t' to 'int' error (issue #2054)

This commit is contained in:
Marshall Greenblatt 2016-11-30 15:23:04 -05:00
parent 7843d6cdff
commit 7f76148993
1 changed files with 1 additions and 1 deletions

View File

@ -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);