From: John Kessenich Date: Wed, 16 Jan 2019 07:55:37 +0000 (+0700) Subject: Build: fix warnings. Fixes #1653. X-Git-Tag: upstream/11.4.0~566 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d72f488cc6c4927ebda8af55950650fa818b8f1d;p=platform%2Fupstream%2Fglslang.git Build: fix warnings. Fixes #1653. --- diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp old mode 100644 new mode 100755 index c7cab84..9bf3704 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp @@ -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); } diff --git a/glslang/MachineIndependent/ParseHelper.cpp b/glslang/MachineIndependent/ParseHelper.cpp index d16dc99..128fd7a 100755 --- a/glslang/MachineIndependent/ParseHelper.cpp +++ b/glslang/MachineIndependent/ParseHelper.cpp @@ -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; }