1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Portability fixes.

This commit is contained in:
Bruno Haible
2003-03-03 14:28:09 +00:00
parent ea37cea17b
commit 9fa3ac42b3
8 changed files with 34 additions and 16 deletions

View File

@@ -778,7 +778,7 @@ Search::prepare_asso_values ()
if (option[RANDOM] || option.get_jump () == 0)
/* We will use rand(), so initialize the random number generator. */
srand (reinterpret_cast<long>(time (0)));
srand (static_cast<long>(time (0)));
_initial_asso_value = (option[RANDOM] ? -1 : option.get_initial_asso_value ());
_jump = option.get_jump ();