summaryrefslogtreecommitdiff
path: root/clang/lib/Lex/PPDirectives.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-06-22 13:40:05 -0700
committerFangrui Song <i@maskray.me>2024-06-22 13:40:05 -0700
commitf5b93ae5884dd72bd145576344e4effff685cf5e (patch)
tree4f53809c4781e79540b782c53c4e8cf7066a1c5d /clang/lib/Lex/PPDirectives.cpp
parentc9f6a5e49519f860f20f808b1af84dc3fc50ff91 (diff)
[clang] Fix -Wsign-compare in 32-bit builds
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r--clang/lib/Lex/PPDirectives.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 94410bc7e078..a53540b12dee 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -546,7 +546,7 @@ void Preprocessor::SkipExcludedConditionalBlock(SourceLocation HashTokenLoc,
if (!*SkipRangePtr) {
*SkipRangePtr = Hashptr - BeginPtr;
}
- assert(*SkipRangePtr == Hashptr - BeginPtr);
+ assert(*SkipRangePtr == unsigned(Hashptr - BeginPtr));
BeginPtr = nullptr;
SkipRangePtr = nullptr;
}