Fixed compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-05-24 04:56:18 +00:00
parent 255a9d5619
commit 8c22b21166
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ void DynamicRibbonWidget::add()
// will be penalized. A configuration that makes items much smaller than
// requested in the XML file will also be penalized.
float ratio = (float)item_height / (float)m_child_height;
float total_area = m_w * m_h;
float total_area = (float)(m_w * m_h);
const float score = log(2.0f*visible_items) *
std::min(ratio, 1.0f) * std::min(taken_area/total_area, 1.0f);

View File

@ -718,7 +718,7 @@ void World::updateHighscores(int* best_highscore_rank, int* best_finish_time, st
if (*best_highscore_rank == -1 || highscore_rank < *best_highscore_rank)
{
*best_highscore_rank = highscore_rank;
*best_finish_time = k->getFinishTime();
*best_finish_time = (int)(k->getFinishTime());
*highscore_who = k->getIdent();
}