From a5bc1f5d7906a9a6f722a8f267be563cb918b508 Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Mon, 23 Feb 2004 07:37:03 +0000 Subject: [PATCH] fix 'can't add two pointers' --- stepmania/src/ProfileHtml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ProfileHtml.cpp b/stepmania/src/ProfileHtml.cpp index 23699b4aa9..d8e3ae277c 100644 --- a/stepmania/src/ProfileHtml.cpp +++ b/stepmania/src/ProfileHtml.cpp @@ -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(""+((fDayCals==0)?"":Commify((int)fDayCals))+""); + f.Write(""+ssprintf("%f",((fDayCals==0)?"":Commify((int)fDayCals)))+""); when = AddDays( when, +1 ); } f.Write(""+Commify((int)fWeekCals)+"");