Author: ilor
Date: Sun Apr 5 13:21:42 2009
New Revision: 34533
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34533&view=rev
Log:
silence a msvc warning
Modified:
trunk/src/game_preferences.cpp
Modified: trunk/src/game_preferences.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_preferences.cpp?rev=34533&r1=34532&r2=34533&view=diff
==============================================================================
--- trunk/src/game_preferences.cpp (original)
+++ trunk/src/game_preferences.cpp Sun Apr 5 13:21:42 2009
@@ -758,7 +758,7 @@
// We create a unique id for each person, *when asked for* to increase
// randomness.
if (preferences::get("upload_id") == "") {
- srand(time(NULL));
+ srand(static_cast<unsigned int>(time(NULL)));
preferences::set("upload_id",
lexical_cast<std::string>(rand())
+ lexical_cast<std::string>(SDL_GetTicks()));
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits