From 0be0a2cb41d773c8ac8e6292fe2cc295e564b04c Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 30 Jan 2013 08:06:14 +0000 Subject: [PATCH] Fix a warning in func_integer.inl The lack of parenthesis triggered -Wshift-op-parentheses in Clang 3.2 --- glm/core/func_integer.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/core/func_integer.inl b/glm/core/func_integer.inl index ae7bf8af..a74a367b 100644 --- a/glm/core/func_integer.inl +++ b/glm/core/func_integer.inl @@ -103,7 +103,7 @@ namespace glm if(x > y) return genUType(detail::highp_int_t(x) - detail::highp_int_t(y)); else - return genUType(detail::highp_int_t(1) << detail::highp_int_t(32) + detail::highp_int_t(x) - detail::highp_int_t(y)); + return genUType((detail::highp_int_t(1) << detail::highp_int_t(32)) + detail::highp_int_t(x) - detail::highp_int_t(y)); } template