From a9e16bd73a957b7849055923f9ee2a1f0c0fafe4 Mon Sep 17 00:00:00 2001 From: nihui Date: Sat, 12 Sep 2020 10:04:36 +0800 Subject: [PATCH] Fix build android ndk r16b --- glslang/MachineIndependent/ParseHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/ParseHelper.cpp b/glslang/MachineIndependent/ParseHelper.cpp index 4d202260..36e37157 100644 --- a/glslang/MachineIndependent/ParseHelper.cpp +++ b/glslang/MachineIndependent/ParseHelper.cpp @@ -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;