about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/prng/mrand48.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prng/mrand48.c b/src/prng/mrand48.c
index ee650fc3..0519d667 100644
--- a/src/prng/mrand48.c
+++ b/src/prng/mrand48.c
@@ -6,7 +6,7 @@ extern unsigned short __seed48[7];
 
 long jrand48(unsigned short s[3])
 {
-	return __rand48_step(s, __seed48+3) >> 16;
+	return (int32_t)(__rand48_step(s, __seed48+3) >> 16);
 }
 
 long mrand48(void)