This patch fixes:
clang/lib/Basic/SourceManager.cpp:1292:19: error: comparison of
integers of different signs: 'long' and 'unsigned long'
[-Werror,-Wsign-compare]
// scan sizeof(Word) bytes at a time for new lines.
// This is much faster than scanning each byte independently.
- if (End - Start > sizeof(Word)) {
+ if ((unsigned long)(End - Start) > sizeof(Word)) {
do {
Word = llvm::support::endian::read64(Buf, llvm::support::little);
// no new line => jump over sizeof(Word) bytes.