summaryrefslogtreecommitdiff
path: root/media-sound/din/files/din-48-fix-random-constants.patch
blob: aef491fe57099a4a06fa2476b24944068d112518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/src/random.h
+++ b/src/random.h
@@ -16,8 +16,8 @@
 const int N = 624;
 const int M = 397;
 const unsigned int MATRIX_A = 0x9908b0df; /* constant vector a */
-const int UPPER_MASK = 0x80000000; /* most significant w-r bits */
-const int LOWER_MASK = 0x7fffffff; /* least significant r bits */
+const unsigned int UPPER_MASK = 0x80000000; /* most significant w-r bits */
+const unsigned int LOWER_MASK = 0x7fffffff; /* least significant r bits */
 
 static unsigned int mt[N]; /* the array for the state vector  */
 static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */