From ebf4e9eaa2dfe5ae27ec7f7a8aa8ddda244b4f08 Mon Sep 17 00:00:00 2001 From: Gottfried Leibniz <37632412+gottfriedleibniz@users.noreply.github.com> Date: Tue, 22 Sep 2020 00:40:47 -0300 Subject: [PATCH] fix: unpackUnorm type --- glm/gtc/packing.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtc/packing.inl b/glm/gtc/packing.inl index 8c906e16..84ad60c7 100644 --- a/glm/gtc/packing.inl +++ b/glm/gtc/packing.inl @@ -683,7 +683,7 @@ namespace detail GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "uintType must be an integer type"); GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "floatType must be a floating point type"); - return vec(v) * (static_cast(1) / static_cast(std::numeric_limits::max())); + return vec(v) * (static_cast(1) / static_cast(std::numeric_limits::max())); } template