From d309a6c215302e7fe169c3023b3228a8d56fceb7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 25 Jun 2005 22:11:56 +0000 Subject: [PATCH] fix warning --- stepmania/src/Profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 73f4a3fcf1..3af3dbf871 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -1049,7 +1049,7 @@ Profile::LoadResult Profile::LoadEditableDataFromDir( CString sDir ) // This is data that the user can change, so we have to validate it. wstring wstr = CStringToWstring(m_sDisplayName); - if( wstr.size() > MAX_DISPLAY_NAME_LENGTH ) + if( (int) wstr.size() > MAX_DISPLAY_NAME_LENGTH ) wstr = wstr.substr(0, MAX_DISPLAY_NAME_LENGTH); m_sDisplayName = WStringToCString(wstr); // TODO: strip invalid chars?