From 083dfdcb91919747ce369ae87e51b32baafa6e03 Mon Sep 17 00:00:00 2001 From: Christophe Date: Wed, 7 Aug 2019 14:11:22 +0200 Subject: [PATCH] Fixed build --- glm/ext/scalar_integer.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/ext/scalar_integer.inl b/glm/ext/scalar_integer.inl index 4adea6b5..49f3cb3f 100644 --- a/glm/ext/scalar_integer.inl +++ b/glm/ext/scalar_integer.inl @@ -178,7 +178,7 @@ namespace detail { GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "'prevPowerOfTwo' only accept integer inputs"); - return isPowerOfTwo(value) ? value : static_cast(1) << findMSB(value); + return isPowerOfTwo(value) ? value : static_cast(1 << findMSB(value)); } template