From cd5eb03b58f270cd1200a9914103a0b6a19b9397 Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 29 May 2008 18:15:50 +0000 Subject: * ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand): Int should be enough here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_rand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/openssl/ossl_rand.c b/ext/openssl/ossl_rand.c index d9c1a7f34f..ad830fbc98 100644 --- a/ext/openssl/ossl_rand.c +++ b/ext/openssl/ossl_rand.c @@ -96,7 +96,7 @@ static VALUE ossl_rand_bytes(VALUE self, VALUE len) { VALUE str; - long n = NUM2INT(len); + int n = NUM2INT(len); str = rb_str_new(0, n); if (!RAND_bytes(RSTRING_PTR(str), n)) { @@ -115,7 +115,7 @@ static VALUE ossl_rand_pseudo_bytes(VALUE self, VALUE len) { VALUE str; - long n = NUM2INT(len); + int n = NUM2INT(len); str = rb_str_new(0, n); if (!RAND_pseudo_bytes(RSTRING_PTR(str), n)) { -- cgit v1.2.3