summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 13:16:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 13:16:19 +0000
commit0b2c95c77aa541fdd5ea02dcca9de7122f6c4936 (patch)
tree9f3bf68c41276b57c5c2c1257f2b11523f17e2bf /ext
parent2a75a88c579947277fdf6e2bb6c1b4af672870d1 (diff)
downloadruby-0b2c95c77aa541fdd5ea02dcca9de7122f6c4936.tar.gz
ruby-0b2c95c77aa541fdd5ea02dcca9de7122f6c4936.tar.xz
ruby-0b2c95c77aa541fdd5ea02dcca9de7122f6c4936.zip
* ext/openssl/ossl_ssl.c (ossl_ssl_def_const): use INT2NUM because
OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG doesn't fit into Fixnum. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index 4025166fe..bf331f640 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -1554,7 +1554,7 @@ Init_ossl_ssl()
rb_define_method(cSSLSocket, "session=", ossl_ssl_set_session, 1);
rb_define_method(cSSLSocket, "verify_result", ossl_ssl_get_verify_result, 0);
-#define ossl_ssl_def_const(x) rb_define_const(mSSL, #x, INT2FIX(SSL_##x))
+#define ossl_ssl_def_const(x) rb_define_const(mSSL, #x, INT2NUM(SSL_##x))
ossl_ssl_def_const(VERIFY_NONE);
ossl_ssl_def_const(VERIFY_PEER);