diff --git a/stepmania/src/NoteData.cpp b/stepmania/src/NoteData.cpp index ccbfa784e8..cb2844c44d 100644 --- a/stepmania/src/NoteData.cpp +++ b/stepmania/src/NoteData.cpp @@ -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 ); diff --git a/stepmania/src/PercentageDisplay.cpp b/stepmania/src/PercentageDisplay.cpp index b5c8edc61a..a231448192 100644 --- a/stepmania/src/PercentageDisplay.cpp +++ b/stepmania/src/PercentageDisplay.cpp @@ -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 );