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:
parent
39e440fde2
commit
1e77ba8067
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user