Remove an old-style-cast.

This commit is contained in:
Mark de Wever 2011-10-21 18:59:29 +00:00
parent bb51354198
commit 88bfe6f6ef

View File

@ -557,7 +557,7 @@ bool show_video_mode_dialog(display& disp)
option << res.first << utils::unicode_multiplication_sign << res.second;
/*widescreen threshold is 16:10*/
if ((double)res.first/res.second >= 16.0/10.0)
if (static_cast<double>(res.first)/res.second >= 16.0/10.0)
option << _(" (widescreen)");
options.push_back(option.str());
}