Commit e221ba81 authored by deuce's avatar deuce
Browse files

It is an error in Clang to cast a pointer to a smaller size. Since a thread

ID is a pointer on at least FreeBSD, cast to uintmax_t instead of DWORD.
parent f3256d81
......@@ -305,7 +305,7 @@ DLLEXPORT void DLLCALL sbbs_srand()
}
if(rd != sizeof(seed))
#endif
seed = time32(NULL) ^ (DWORD)GetCurrentThreadId();
seed = time32(NULL) ^ (uintmax_t)GetCurrentThreadId();
srand(seed);
sbbs_random(10); /* Throw away first number */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment