Skip to content
Snippets Groups Projects
Commit 49b9cd73 authored by deuce's avatar deuce
Browse files

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

parent 5c9f9300
Branches
Tags
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment