diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index b56c3dfb98..54ed8ff7bc 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -139,7 +139,7 @@ CString Profile::GetDisplayTotalCaloriesBurned() const if( m_fWeightPounds == 0 ) // weight not entered return "N/A"; else - return Commify(m_fTotalCaloriesBurned) + " Cal"; + return Commify((int)m_fTotalCaloriesBurned) + " Cal"; } int Profile::GetTotalNumSongsPlayed() const diff --git a/stepmania/src/ProfileHtml.cpp b/stepmania/src/ProfileHtml.cpp index 6c0f8aa79f..23699b4aa9 100644 --- a/stepmania/src/ProfileHtml.cpp +++ b/stepmania/src/ProfileHtml.cpp @@ -1003,10 +1003,10 @@ void PrintCaloriesBurned( RageFile &f, const Profile *pProfile, CString sTitle, Profile::Day day = { when.tm_yday, when.tm_year+1900 }; float fDayCals = pProfile->GetCaloriesBurnedForDay( day ); fWeekCals += fDayCals; - f.Write(""+((fDayCals==0)?"":Commify(fDayCals))+""); + f.Write(""+((fDayCals==0)?"":Commify((int)fDayCals))+""); when = AddDays( when, +1 ); } - f.Write(""+Commify(fWeekCals)+""); + f.Write(""+Commify((int)fWeekCals)+""); f.Write(""); when = AddDays( when, -DAYS_IN_WEEK*2 ); }