Browse Source

Fix missing return statement in swizzle assignment operator

tszirr 12 years ago
parent
commit
e166850954
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/core/_swizzle.hpp

+ 1 - 1
glm/core/_swizzle.hpp

@@ -191,7 +191,7 @@ namespace detail
 		typedef ValueType       value_type;
 		typedef ValueType       value_type;
 
 
 		struct Stub {};
 		struct Stub {};
-		_swizzle_base2& operator= (Stub const &) {}
+		_swizzle_base2& operator= (Stub const &) { return *this; }
 
 
 		value_type  operator[]  (size_t i) const
 		value_type  operator[]  (size_t i) const
 		{
 		{