Skip to content

Commit

Permalink
Fix type conversion error.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301987 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Zachary Turner committed May 2, 2017
1 parent 288180a commit c7dd63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DebugInfo/CodeView/StringTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Error StringTable::commit(BinaryStreamWriter &Writer) const {
Writer.setOffset(Offset);
if (auto EC = Writer.writeCString(S))
return EC;
MaxOffset = std::max(MaxOffset, Offset + S.size() + 1);
MaxOffset = std::max<uint32_t>(MaxOffset, Offset + S.size() + 1);
}

Writer.setOffset(MaxOffset);
Expand Down

0 comments on commit c7dd63d

Please sign in to comment.