We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352a55e commit aec80c5Copy full SHA for aec80c5
llvm/include/llvm/Bitstream/BitstreamWriter.h
@@ -158,7 +158,7 @@ class BitstreamWriter {
158
// Copy data to update into Bytes from the file FS and the buffer Out.
159
char Bytes[8];
160
size_t BytesNum = StartBit ? 8 : 4;
161
- size_t BytesFromDisk = std::min(BytesNum, NumOfFlushedBytes - ByteNo);
+ size_t BytesFromDisk = std::min(static_cast<uint64_t>(BytesNum), NumOfFlushedBytes - ByteNo);
162
size_t BytesFromBuffer = BytesNum - BytesFromDisk;
163
164
// When unaligned, copy existing data into Bytes from the file FS and the
0 commit comments