diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp index 8dfc681d..92495746 100755 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp @@ -2125,7 +2125,7 @@ void TGlslangToSpvTraverser::updateMemberOffset(const glslang::TType& /*structTy bool TGlslangToSpvTraverser::isShaderEntrypoint(const glslang::TIntermAggregate* node) { // 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; } diff --git a/glslang/Include/Types.h b/glslang/Include/Types.h index bff7e9a9..e28e5b29 100644 --- a/glslang/Include/Types.h +++ b/glslang/Include/Types.h @@ -999,9 +999,9 @@ public: qualifier.storage = EvqGlobal; } - void init(const TSourceLoc& loc, bool global = false) + void init(const TSourceLoc& l, bool global = false) { - initType(loc); + initType(l); sampler.clear(); initQualifiers(global); shaderQualifiers.init();