Skip to content

Commit f24c1dd

Browse files
committed
Fix MSVC "signed/unsigned mismatch" warning. NFC.
1 parent 9d88543 commit f24c1dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-format/ClangFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static bool format(StringRef FileName, bool ErrorOnIncompleteFormat = false) {
510510
reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status);
511511
Replaces = Replaces.merge(FormatChanges);
512512
if (DryRun) {
513-
return Replaces.size() > (IsJson ? 1 : 0) &&
513+
return Replaces.size() > (IsJson ? 1u : 0u) &&
514514
emitReplacementWarnings(Replaces, AssumedFileName, Code);
515515
}
516516
if (OutputXML) {

0 commit comments

Comments
 (0)