Fixed .length() that should return a int and not a size_t

This commit is contained in:
Christophe Riccio 2013-09-08 00:25:26 +02:00
parent b9266c07b0
commit d3f0262a27
9 changed files with 9 additions and 8 deletions

View File

@ -46,7 +46,7 @@ namespace detail
typedef tvec1<T, P> type; typedef tvec1<T, P> type;
typedef tvec1<bool, P> bool_type; typedef tvec1<bool, P> bool_type;
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const; GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
////////////////////////////////////// //////////////////////////////////////
// Data // Data

View File

@ -30,7 +30,7 @@ namespace glm{
namespace detail namespace detail
{ {
template <typename T, precision P> template <typename T, precision P>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec1<T, P>::size_type tvec1<T, P>::length() const GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tvec1<T, P>::length() const
{ {
return 1; return 1;
} }

View File

@ -46,7 +46,7 @@ namespace detail
typedef tvec2<T, P> type; typedef tvec2<T, P> type;
typedef tvec2<bool, P> bool_type; typedef tvec2<bool, P> bool_type;
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const; GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
////////////////////////////////////// //////////////////////////////////////
// Data // Data

View File

@ -30,7 +30,7 @@ namespace glm{
namespace detail namespace detail
{ {
template <typename T, precision P> template <typename T, precision P>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec2<T, P>::size_type tvec2<T, P>::length() const GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tvec2<T, P>::length() const
{ {
return 2; return 2;
} }

View File

@ -46,7 +46,7 @@ namespace detail
typedef tvec3<T, P> type; typedef tvec3<T, P> type;
typedef tvec3<bool, P> bool_type; typedef tvec3<bool, P> bool_type;
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const; GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
////////////////////////////////////// //////////////////////////////////////
// Data // Data

View File

@ -30,7 +30,7 @@ namespace glm{
namespace detail namespace detail
{ {
template <typename T, precision P> template <typename T, precision P>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec3<T, P>::size_type tvec3<T, P>::length() const GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tvec3<T, P>::length() const
{ {
return 3; return 3;
} }

View File

@ -46,7 +46,7 @@ namespace detail
typedef tvec4<T, P> type; typedef tvec4<T, P> type;
typedef tvec4<bool, P> bool_type; typedef tvec4<bool, P> bool_type;
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const; GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
////////////////////////////////////// //////////////////////////////////////
// Data // Data

View File

@ -30,7 +30,7 @@ namespace glm{
namespace detail namespace detail
{ {
template <typename T, precision P> template <typename T, precision P>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec4<T, P>::size_type tvec4<T, P>::length() const GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tvec4<T, P>::length() const
{ {
return 4; return 4;
} }

View File

@ -54,6 +54,7 @@ GLM 0.9.5.0: 2013-XX-XX
- Removed l-value swizzle operators - Removed l-value swizzle operators
- Clean up compiler detection code for unsupported compilers - Clean up compiler detection code for unsupported compilers
- Uses C++ casts - Uses C++ casts
- Fixed .length() that should return a int and not a size_t
================================================================================ ================================================================================
GLM 0.9.4.6: 2013-08-XX GLM 0.9.4.6: 2013-08-XX