Index: trunk/src/io/c_stream.cc
===================================================================
--- trunk/src/io/c_stream.cc	(revision 486)
+++ trunk/src/io/c_stream.cc	(revision 487)
@@ -50,5 +50,5 @@
 {
 	NV_ASSERT( buffer != nullptr && max_count != 0, "Bad parameter passed to write!" );
-	char* result = ::fgets( buffer, max_count, reinterpret_cast<FILE*>( m_file ) );
+	char* result = ::fgets( buffer, static_cast<int>( max_count ), reinterpret_cast<FILE*>( m_file ) );
 	if ( !result ) return false;
 	return true;
