Index: trunk/src/formats/md2_loader.cc
===================================================================
--- trunk/src/formats/md2_loader.cc	(revision 200)
+++ trunk/src/formats/md2_loader.cc	(revision 204)
@@ -357,5 +357,5 @@
 	uint32 stats_collision  = 0;
 
-	std::vector< sint32 > index_translation( md2->header.num_vertices, -1 );
+	std::vector< sint32 > index_translation( static_cast< uint32 >( md2->header.num_vertices ), -1 );
 
 	m_new_indexes.clear();
Index: trunk/src/formats/obj_loader.cc
===================================================================
--- trunk/src/formats/obj_loader.cc	(revision 200)
+++ trunk/src/formats/obj_loader.cc	(revision 204)
@@ -130,5 +130,5 @@
 };
 
-std::size_t mesh_obj_reader::add_face( uint32* vi, uint32* ti, uint32* ni, size_t count )
+size_t mesh_obj_reader::add_face( uint32* vi, uint32* ti, uint32* ni, size_t count )
 {
 	if ( count < 3 )
@@ -181,6 +181,6 @@
 	std::vector< vec4 >& tg = m_tangent->get();
 
-	std::size_t count  = vp.size();
-	std::size_t tcount = count / 3;
+	size_t count  = vp.size();
+	size_t tcount = count / 3;
 
 	std::vector< vec3 > tan1( count );
@@ -188,9 +188,9 @@
 	tg.resize( count );
 
-	for (std::size_t a = 0; a < tcount; ++a )
-	{
-		uint32 i1 = a * 3;
-		uint32 i2 = a * 3 + 1;
-		uint32 i3 = a * 3 + 2;
+	for (size_t a = 0; a < tcount; ++a )
+	{
+		size_t i1 = a * 3;
+		size_t i2 = a * 3 + 1;
+		size_t i3 = a * 3 + 2;
 
 		// TODO: simplify
