Fixed warnings

This commit is contained in:
Christophe Riccio 2015-08-31 18:13:46 +02:00
parent 70234afb49
commit 6aabe5a07d
2 changed files with 11 additions and 10 deletions

View File

@ -341,12 +341,12 @@ namespace glm
template <typename T, precision P> template <typename T, precision P>
template <typename U> template <typename U>
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator*=(U s) GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator*=(U v)
{ {
this->x *= static_cast<T>(s); this->x *= static_cast<T>(v);
this->y *= static_cast<T>(s); this->y *= static_cast<T>(v);
this->z *= static_cast<T>(s); this->z *= static_cast<T>(v);
this->w *= static_cast<T>(s); this->w *= static_cast<T>(v);
return *this; return *this;
} }
@ -374,12 +374,12 @@ namespace glm
template <typename T, precision P> template <typename T, precision P>
template <typename U> template <typename U>
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator/=(U s) GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator/=(U v)
{ {
this->x /= static_cast<T>(s); this->x /= static_cast<T>(v);
this->y /= static_cast<T>(s); this->y /= static_cast<T>(v);
this->z /= static_cast<T>(s); this->z /= static_cast<T>(v);
this->w /= static_cast<T>(s); this->w /= static_cast<T>(v);
return *this; return *this;
} }

View File

@ -56,6 +56,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
##### Fixes: ##### Fixes:
- Fixed link errors on compilers not supported default function #377 - Fixed link errors on compilers not supported default function #377
- Fixed compilation warnings in vec4
#### [GLM 0.9.7.0](https://github.com/g-truc/glm/releases/tag/0.9.7.0) - 2015-08-02 #### [GLM 0.9.7.0](https://github.com/g-truc/glm/releases/tag/0.9.7.0) - 2015-08-02
##### Features: ##### Features: