You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/din/files/din-48-fix-random-constants...

16 lines
667 B

diff --git a/src/random.h b/src/random.h
index d5a2bc6..38f0d14 100644
--- 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 */