diff options
| author | Fangrui Song <i@maskray.me> | 2024-06-22 13:40:05 -0700 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2024-06-22 13:40:05 -0700 |
| commit | f5b93ae5884dd72bd145576344e4effff685cf5e (patch) | |
| tree | 4f53809c4781e79540b782c53c4e8cf7066a1c5d /clang/lib/Lex/PPDirectives.cpp | |
| parent | c9f6a5e49519f860f20f808b1af84dc3fc50ff91 (diff) | |
[clang] Fix -Wsign-compare in 32-bit builds
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
| -rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 2 |
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; } |
