Commit 49b9cd73 authored by deuce's avatar deuce
Browse files

Fix warning found by clang... 1U and 1UL may be difference sizes.

parent 5c9f9300
......@@ -327,7 +327,7 @@ long DLLCALL xp_random(int n)
if(n<2)
return(0);
limit = ((1U<<((sizeof(long)*CHAR_BIT)-1)) / n) * n - 1;
limit = ((1UL<<((sizeof(long)*CHAR_BIT)-1)) / n) * n - 1;
while(1) {
curr=random();
......
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