]> granicus.if.org Git - nethack/commitdiff
Cast time_t into unsigned long
authorPasi Kallinen <paxed@alt.org>
Fri, 10 Apr 2015 16:47:17 +0000 (19:47 +0300)
committerPasi Kallinen <paxed@alt.org>
Fri, 10 Apr 2015 16:47:17 +0000 (19:47 +0300)
src/hacklib.c

index 1ad5028a94b4d9c6592b88b49573b5ebbf1408bb..ddc122ce810c9d4b96bdbe005f51198139065653 100644 (file)
@@ -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();