Quiet some warnings. (vc8 certainly bitches alot more than vc6 did)

This commit is contained in:
Thad Ward
2004-10-23 01:41:21 +00:00
parent 715099fc5b
commit 827842a396
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ void NoteData::SetTapAttackNote( int track, int row, Attack attack )
TapNote::attack,
TapNote::original,
true,
i,
(uint8_t)i,
false,
0 );
SetTapNote( track, row, tn );
+1 -1
View File
@@ -93,7 +93,7 @@ void PercentageDisplay::Refresh()
{
// TRICKY: printf will round, but we want to truncate. Otherwise, we may display a percent
// score that's too high and doesn't match up with the calculated grade.
float fTruncInterval = powf(0.1f,PERCENT_TOTAL_SIZE);
float fTruncInterval = powf(0.1f, (float) PERCENT_TOTAL_SIZE);
fPercentDancePoints = ftruncf( fPercentDancePoints, fTruncInterval );
sNumToDisplay = ssprintf( "%*.*f%%", PERCENT_TOTAL_SIZE, PERCENT_DECIMAL_PLACES, fPercentDancePoints*100 );