Fix build android ndk r16b
authornihui <shuizhuyuanluo@126.com>
Sat, 12 Sep 2020 02:04:36 +0000 (10:04 +0800)
committerGitHub <noreply@github.com>
Sat, 12 Sep 2020 02:04:36 +0000 (10:04 +0800)
glslang/MachineIndependent/ParseHelper.cpp

index 4d20226..36e3715 100644 (file)
@@ -5417,7 +5417,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 = (unsigned int)std::log2(value);
+            publicType.qualifier.layoutBufferReferenceAlign = (unsigned int)log2(value);
         if (nonLiteral)
             error(loc, "needs a literal integer", "buffer_reference_align", "");
         return;