From 49b9cd73f00210e5bff6e131c3d4007ee0eaa1f4 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 5 Feb 2014 10:17:28 +0000
Subject: [PATCH] Fix warning found by clang... 1U and 1UL may be difference
 sizes.

---
 src/xpdev/genwrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xpdev/genwrap.c b/src/xpdev/genwrap.c
index 73ebf896b6..2b4db87f3c 100644
--- a/src/xpdev/genwrap.c
+++ b/src/xpdev/genwrap.c
@@ -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();
-- 
GitLab