summaryrefslogtreecommitdiffstats
path: root/ext/openssl
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-29 18:15:50 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-29 18:15:50 +0000
commit4f43e31332377aca476e68e9fc1559df80b2f28c (patch)
tree29ae8940e54fc733cd41f4ee622f557c61699cf5 /ext/openssl
parent2d466e2886d5c2d7739dd17f2313726155c6af7c (diff)
downloadruby-4f43e31332377aca476e68e9fc1559df80b2f28c.tar.gz
ruby-4f43e31332377aca476e68e9fc1559df80b2f28c.tar.xz
ruby-4f43e31332377aca476e68e9fc1559df80b2f28c.zip
* ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand):
Int should be enough here. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/ossl_rand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_rand.c b/ext/openssl/ossl_rand.c
index d9c1a7f34..ad830fbc9 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)) {