Skip to content

Commit

Permalink
silence an innocuous -Wsign-compare warning about comparing size_t an…
Browse files Browse the repository at this point in the history
…d int (#19915)
  • Loading branch information
stevengj authored Jan 8, 2017
1 parent f02fcc6 commit e693bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4450,7 +4450,7 @@ static std::unique_ptr<Module> emit_function(
std::vector<Value*> ditypes(0);
#endif
for (size_t i = 0; i < jl_nparams(lam->specTypes); i++) { // assumes !va
if (i < ctx.nargs && ctx.slots[i].value.isghost)
if (i < (size_t)(ctx.nargs) && ctx.slots[i].value.isghost)
continue;
ditypes.push_back(julia_type_to_di(jl_tparam(lam->specTypes,i),&dbuilder,false));
}
Expand Down

0 comments on commit e693bb2

Please sign in to comment.