Fixed VC2010 error message: builtins.cpp(183): warning C4018: '<' : signed/unsigned mismatch

This commit is contained in:
danschubert
2011-07-07 05:19:32 -07:00
parent af70718eca
commit be8e121b71

View File

@@ -180,7 +180,7 @@ lCreateISPCSymbol(llvm::Function *func, SymbolTable *symbolTable) {
FunctionType *funcType = new FunctionType(returnType, argTypes, noPos);
// set NULL default arguments
std::vector<ConstExpr *> defaults;
for (int j = 0; j < ftype->getNumParams(); ++j)
for (unsigned int j = 0; j < ftype->getNumParams(); ++j)
defaults.push_back(NULL);
funcType->SetArgumentDefaults(defaults);