1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* random.c (DEFAULT_SEED_LEN): suppress a warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-07-19 05:45:14 +00:00
parent 8ef7bb8c21
commit 79dfc605ff

View file

@ -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