fix warnings

This commit is contained in:
Glenn Maynard
2004-02-23 01:47:59 +00:00
parent 771889d948
commit 54ead61dbc
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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("<td class='daycalories'><font class='daycalories'>"+((fDayCals==0)?"":Commify(fDayCals))+"</font></td>");
f.Write("<td class='daycalories'><font class='daycalories'>"+((fDayCals==0)?"":Commify((int)fDayCals))+"</font></td>");
when = AddDays( when, +1 );
}
f.Write("<td class='weekcalories'><font class='weekcalories'>"+Commify(fWeekCals)+"</font></td>");
f.Write("<td class='weekcalories'><font class='weekcalories'>"+Commify((int)fWeekCals)+"</font></td>");
f.Write("</tr>");
when = AddDays( when, -DAYS_IN_WEEK*2 );
}