summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index c630e9b6b5..dbc77d0532 100644
--- a/random.c
+++ b/random.c
@@ -403,7 +403,7 @@ rand_init(struct MT *mt, VALUE vseed)
fixnum_seed = -fixnum_seed;
buf[0] = (unsigned int)(fixnum_seed & 0xffffffff);
#if SIZEOF_LONG > SIZEOF_INT32
- if ((long)(int)fixnum_seed != fixnum_seed) {
+ if ((long)(int32_t)fixnum_seed != fixnum_seed) {
if ((buf[1] = (unsigned int)(fixnum_seed >> 32)) != 0) ++len;
}
#endif