summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index 72ef7c5780..2c57ffc074 100644
--- a/random.c
+++ b/random.c
@@ -459,7 +459,7 @@ random_init(int argc, VALUE *argv, VALUE obj)
return obj;
}
-#define DEFAULT_SEED_LEN (DEFAULT_SEED_CNT * sizeof(int))
+#define DEFAULT_SEED_LEN (DEFAULT_SEED_CNT * (int)sizeof(int))
#if defined(S_ISCHR) && !defined(DOSISH)
# define USE_DEV_URANDOM 1