1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Use one more byte to silence a warning from Vistual C++

This commit is contained in:
Jianzhou Zhao 2020-09-18 16:41:18 +00:00
parent 39e440fde2
commit 1e77ba8067

View File

@ -156,7 +156,7 @@ public:
uint64_t CurPos = FS->tell();
// Copy data to update into Bytes from the file FS and the buffer Out.
char Bytes[8];
char Bytes[9]; // Use one more byte to silence a warning from Visual C++.
size_t BytesNum = StartBit ? 8 : 4;
size_t BytesFromDisk = std::min(static_cast<uint64_t>(BytesNum), NumOfFlushedBytes - ByteNo);
size_t BytesFromBuffer = BytesNum - BytesFromDisk;