Index: trunk/src/gfx/texture_atlas.cc
===================================================================
--- trunk/src/gfx/texture_atlas.cc	(revision 145)
+++ trunk/src/gfx/texture_atlas.cc	(revision 146)
@@ -87,5 +87,5 @@
 	glm::ivec3 node = m_nodes[ index ];
 
-	if ( node.x + size.x > m_size.x - m_border ) 
+	if ( node.x + size.x > m_size.x - static_cast<int>( m_border ) ) 
 	{
 		return -1;
@@ -102,5 +102,5 @@
 			y = node.y;
 		}
-		if ( y + size.y > m_size.y - m_border )
+		if ( y + size.y > m_size.y - static_cast<int>( m_border ) )
 		{
 			return -1;
