Build: fix warnings. Fixes #1653.

This commit is contained in:
John Kessenich 2019-01-16 14:55:37 +07:00
parent 2898223375
commit d72f488cc6
2 changed files with 2 additions and 2 deletions

2
SPIRV/GlslangToSpv.cpp Normal file → Executable file
View File

@ -3232,7 +3232,7 @@ spv::Id TGlslangToSpvTraverser::convertGlslangStructToSpvType(const glslang::TTy
// Decorate it
decorateStructType(type, glslangMembers, explicitLayout, qualifier, spvType);
for (int i = 0; i < deferredForwardPointers.size(); ++i) {
for (int i = 0; i < (int)deferredForwardPointers.size(); ++i) {
auto it = deferredForwardPointers[i];
convertGlslangToSpvType(*it.first, explicitLayout, it.second, false);
}

View File

@ -5062,7 +5062,7 @@ void TParseContext::setLayoutQualifier(const TSourceLoc& loc, TPublicType& publi
if (! IsPow2(value))
error(loc, "must be a power of 2", "buffer_reference_align", "");
else
publicType.qualifier.layoutBufferReferenceAlign = std::log2(value);
publicType.qualifier.layoutBufferReferenceAlign = (unsigned int)std::log2(value);
return;
}