Skip to content

Commit

Permalink
Fix MSVC "signed/unsigned mismatch" warning. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Feb 15, 2024
1 parent b279ca2 commit 0636309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/Interp/Function.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Function final {
/// Returns the number of parameter this function takes when it's called,
/// i.e excluding the instance pointer and the RVO pointer.
unsigned getNumWrittenParams() const {
assert(getNumParams() >= (hasThisPointer() + hasRVO()));
assert(getNumParams() >= (unsigned)(hasThisPointer() + hasRVO()));
return getNumParams() - hasThisPointer() - hasRVO();
}
unsigned getWrittenArgSize() const {
Expand Down

0 comments on commit 0636309

Please sign in to comment.