Kaydet (Commit) 8edec7c8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Wsign-compare

Change-Id: I81a7fac291c46a0ee6da76ab3e29c53ad0678b66
üst ffa3b434
......@@ -184,7 +184,9 @@ bool ImplicitBoolConversion::TraverseCallExpr(CallExpr * expr) {
} else {
std::ptrdiff_t n = j - expr->arg_begin();
assert(n >= 0);
assert(n < compat::getNumParams(*t) || t->isVariadic());
assert(
static_cast<std::size_t>(n) < compat::getNumParams(*t)
|| t->isVariadic());
if (n < compat::getNumParams(*t)
&& !(compat::getParamType(*t, n)->isSpecificBuiltinType(
BuiltinType::Int)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment