Skip to content

Commit

Permalink
Workaround for a compiler warning, thanks Luigi Castelli
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Jul 19, 2019
1 parent fbd3dd4 commit a4ec8db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/boost/qvm/quat_operations.hpp
Expand Up @@ -1435,9 +1435,9 @@ boost
}
else
{
typedef typename vec_traits<B>::scalar_type T;
vec_traits<B>::template write_element<0>(b) = scalar_traits<T>::value(1);
vec_traits<B>::template write_element<1>(b) = vec_traits<B>::template write_element<2>(b) = scalar_traits<T>::value(0);
typedef typename vec_traits<B>::scalar_type U;
vec_traits<B>::template write_element<0>(b) = scalar_traits<U>::value(1);
vec_traits<B>::template write_element<1>(b) = vec_traits<B>::template write_element<2>(b) = scalar_traits<U>::value(0);
}
return scalar_traits<T>::value(2) * qvm::acos(a0);
}
Expand Down

0 comments on commit a4ec8db

Please sign in to comment.