Fix a warning in func_integer.inl

The lack of parenthesis triggered -Wshift-op-parentheses in Clang 3.2
master
Corentin Wallez ago%!(EXTRA string=12 years)
parent a4aa39f9bd
commit 0be0a2cb41
  1. 2
      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 <typename T>

Loading…
Cancel
Save