diff options
author | noah the goodra <peterpan0413@live.com> | 2017-01-31 05:08:00 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-01-31 05:08:00 +0100 |
commit | a2d0e2d807617a93bfaa7be8dc1f04a1c9fa4ea1 (patch) | |
tree | c3c67483a513b844395c5a539f1049a9cc0a24fd /src | |
parent | Support looping HLE audio (#2422) (diff) | |
download | yuzu-a2d0e2d807617a93bfaa7be8dc1f04a1c9fa4ea1.tar yuzu-a2d0e2d807617a93bfaa7be8dc1f04a1c9fa4ea1.tar.gz yuzu-a2d0e2d807617a93bfaa7be8dc1f04a1c9fa4ea1.tar.bz2 yuzu-a2d0e2d807617a93bfaa7be8dc1f04a1c9fa4ea1.tar.lz yuzu-a2d0e2d807617a93bfaa7be8dc1f04a1c9fa4ea1.tar.xz yuzu-a2d0e2d807617a93bfaa7be8dc1f04a1c9fa4ea1.tar.zst yuzu-a2d0e2d807617a93bfaa7be8dc1f04a1c9fa4ea1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/file_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 1a1f5d9b5..df234c225 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -303,7 +303,7 @@ bool Copy(const std::string& srcFilename, const std::string& destFilename) { // copy loop while (!feof(input)) { // read input - int rnum = fread(buffer, sizeof(char), BSIZE, input); + size_t rnum = fread(buffer, sizeof(char), BSIZE, input); if (rnum != BSIZE) { if (ferror(input) != 0) { LOG_ERROR(Common_Filesystem, "failed reading from source, %s --> %s: %s", @@ -313,7 +313,7 @@ bool Copy(const std::string& srcFilename, const std::string& destFilename) { } // write output - int wnum = fwrite(buffer, sizeof(char), rnum, output); + size_t wnum = fwrite(buffer, sizeof(char), rnum, output); if (wnum != rnum) { LOG_ERROR(Common_Filesystem, "failed writing to output, %s --> %s: %s", srcFilename.c_str(), destFilename.c_str(), GetLastErrorMsg()); |