From: Pasi Kallinen Date: Fri, 10 Apr 2015 16:47:17 +0000 (+0300) Subject: Cast time_t into unsigned long X-Git-Tag: NetHack-3.6.0_RC01~414^2~41^2~8^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddd7c9b69022bc5a4105f9b46965d6542e7f9a76;p=nethack Cast time_t into unsigned long --- diff --git a/src/hacklib.c b/src/hacklib.c index 1ad5028a9..ddc122ce8 100644 --- a/src/hacklib.c +++ b/src/hacklib.c @@ -603,7 +603,7 @@ STATIC_DCL struct tm *NDECL(getlt); void setrandom() { - unsigned long seed = getnow(); /* time((TIME_type) 0) */ + unsigned long seed = (unsigned long)getnow(); /* time((TIME_type) 0) */ #ifdef UNIX /* Quick dirty band-aid to prevent PRNG prediction */ seed *= getpid();