fix 'can't add two pointers'

This commit is contained in:
Andrew Wong
2004-02-23 07:37:03 +00:00
parent 3ba4d33d21
commit a5bc1f5d79
+1 -1
View File
@@ -1003,7 +1003,7 @@ 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((int)fDayCals))+"</font></td>");
f.Write("<td class='daycalories'><font class='daycalories'>"+ssprintf("%f",((fDayCals==0)?"":Commify((int)fDayCals)))+"</font></td>");
when = AddDays( when, +1 );
}
f.Write("<td class='weekcalories'><font class='weekcalories'>"+Commify((int)fWeekCals)+"</font></td>");