Fixing some casts that warn when compiled to 64 bit (size_t is 64 bit rather then 32 bit)

This commit is contained in:
Dan Baker 2016-08-02 14:42:43 -04:00
parent 1176530bf5
commit b49806b0bf

View File

@ -989,7 +989,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
const TSampler& texSampler = texType.getSampler(); const TSampler& texSampler = texType.getSampler();
const TSamplerDim dim = texSampler.dim; const TSamplerDim dim = texSampler.dim;
const int numArgs = argAggregate->getSequence().size(); const int numArgs = (int) argAggregate->getSequence().size();
int numDims = 0; int numDims = 0;
@ -1175,7 +1175,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
lodComponent->setType(TType(coordBaseType, EvqTemporary, 1)); lodComponent->setType(TType(coordBaseType, EvqTemporary, 1));
} }
const int numArgs = argAggregate->getSequence().size(); const int numArgs = (int) argAggregate->getSequence().size();
const bool hasOffset = ((!isMS && numArgs == 3) || (isMS && numArgs == 4)); const bool hasOffset = ((!isMS && numArgs == 3) || (isMS && numArgs == 4));
// Create texel fetch // Create texel fetch
@ -1219,7 +1219,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
TIntermTyped* argLod = argAggregate->getSequence()[3]->getAsTyped(); TIntermTyped* argLod = argAggregate->getSequence()[3]->getAsTyped();
TIntermTyped* argOffset = nullptr; TIntermTyped* argOffset = nullptr;
const int numArgs = argAggregate->getSequence().size(); const int numArgs = (int) argAggregate->getSequence().size();
if (numArgs == 5) // offset, if present if (numArgs == 5) // offset, if present
argOffset = argAggregate->getSequence()[4]->getAsTyped(); argOffset = argAggregate->getSequence()[4]->getAsTyped();