Browse Source

Merge pull request #16 from andersm/master

Fix clang build
Lloyd Weehuizen 14 years ago
parent
commit
0740f62d16
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Include/Rocket/Core/Vector2.inl

+ 2 - 2
Include/Rocket/Core/Vector2.inl

@@ -62,7 +62,7 @@ Type Vector2< Type >::SquaredMagnitude() const
 template < typename Type >
 Vector2< Type > Vector2< Type >::Normalise() const
 {
-	ROCKET_STATIC_ASSERT(false, Invalid_Operation);
+	ROCKET_STATIC_ASSERT(sizeof(Type) == 0, Invalid_Operation);
 	return *this;
 }
 
@@ -81,7 +81,7 @@ Type Vector2< Type >::DotProduct(const Vector2< Type >& rhs) const
 template < typename Type >
 Vector2< Type > Vector2< Type >::Rotate(float theta) const
 {
-	ROCKET_STATIC_ASSERT(false, Invalid_Operation);
+	ROCKET_STATIC_ASSERT(sizeof(Type) == 0, Invalid_Operation);
 	return *this;
 }