Fix warning about losing information, use size_t instead of int

This commit is contained in:
baldurk 2016-04-09 13:07:12 +02:00
parent 6e620c4674
commit 3cb57d3731

View File

@ -2125,7 +2125,7 @@ void TGlslangToSpvTraverser::updateMemberOffset(const glslang::TType& /*structTy
bool TGlslangToSpvTraverser::isShaderEntrypoint(const glslang::TIntermAggregate* node) bool TGlslangToSpvTraverser::isShaderEntrypoint(const glslang::TIntermAggregate* node)
{ {
// have to ignore mangling and just look at the base name // have to ignore mangling and just look at the base name
int firstOpen = node->getName().find('('); size_t firstOpen = node->getName().find('(');
return node->getName().compare(0, firstOpen, glslangIntermediate->getEntryPoint().c_str()) == 0; return node->getName().compare(0, firstOpen, glslangIntermediate->getEntryPoint().c_str()) == 0;
} }