From 946d26ae8e87f13c05018f8b360cdecaa34cb2c4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 27 Jan 2004 21:03:43 +0000 Subject: [PATCH] fix warnings --- stepmania/src/RageUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index a5bc45d9a4..82afe1113f 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -966,7 +966,7 @@ CString Capitalize( const CString &s ) return ""; CString s2 = s; /* XXX: utf-8 */ - if( s2[0] <= 127 ) + if( !(s2[0] & 0x80) ) s2[0] = (char) toupper( s2[0] ); return s2; } @@ -1100,7 +1100,7 @@ void FileWrite(RageFile& f, int iWrite) void FileWrite(RageFile& f, size_t uWrite) { - f.PutLine( ssprintf("%lu", uWrite) ); + f.PutLine( ssprintf("%i", (int)uWrite) ); } void FileWrite(RageFile& f, float fWrite)