diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-20 19:12:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-20 19:12:21 -0500 |
commit | 557b2496d7a83b26ad6737543a7da91826650fca (patch) | |
tree | 28c5d2fa3cba08f1f49f5c10fa16bfb94144d01c /src/common/file_util.cpp | |
parent | 6cccbf0eb365c9918e09a4965d46e9252c8ec6c4 (diff) | |
parent | 96f446ff653e0af38edb8c3e6d342c045e5bb8b1 (diff) |
Merge pull request #117 from jroweboy/clang-format
Clang format as a build target
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r-- | src/common/file_util.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 5ab036b34..4e1d702f7 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -873,20 +873,19 @@ bool IOFile::Flush() { } bool IOFile::Resize(u64 size) { - if (!IsOpen() || - 0 != + if (!IsOpen() || 0 != #ifdef _WIN32 - // ector: _chsize sucks, not 64-bit safe - // F|RES: changed to _chsize_s. i think it is 64-bit safe - _chsize_s(_fileno(m_file), size) + // ector: _chsize sucks, not 64-bit safe + // F|RES: changed to _chsize_s. i think it is 64-bit safe + _chsize_s(_fileno(m_file), size) #else - // TODO: handle 64bit and growing - ftruncate(fileno(m_file), size) + // TODO: handle 64bit and growing + ftruncate(fileno(m_file), size) #endif - ) + ) m_good = false; return m_good; } -} // namespace +} // namespace FileUtil |