Skip to content

Commit 0636309

Browse files
committed
Fix MSVC "signed/unsigned mismatch" warning. NFC.
1 parent b279ca2 commit 0636309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/Function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Function final {
186186
/// Returns the number of parameter this function takes when it's called,
187187
/// i.e excluding the instance pointer and the RVO pointer.
188188
unsigned getNumWrittenParams() const {
189-
assert(getNumParams() >= (hasThisPointer() + hasRVO()));
189+
assert(getNumParams() >= (unsigned)(hasThisPointer() + hasRVO()));
190190
return getNumParams() - hasThisPointer() - hasRVO();
191191
}
192192
unsigned getWrittenArgSize() const {

0 commit comments

Comments
 (0)