Author: mordante
Date: Fri Oct 21 20:59:29 2011
New Revision: 51565
URL: http://svn.gna.org/viewcvs/wesnoth?rev=51565&view=rev
Log:
Remove an old-style-cast.
Modified:
trunk/src/preferences_display.cpp
Modified: trunk/src/preferences_display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/preferences_display.cpp?rev=51565&r1=51564&r2=51565&view=diff
==============================================================================
--- trunk/src/preferences_display.cpp (original)
+++ trunk/src/preferences_display.cpp Fri Oct 21 20:59:29 2011
@@ -557,7 +557,7 @@
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());
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits