diff --git a/ChangeLog b/ChangeLog index 273c9f4c2d..84e97512b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Mar 12 22:14:01 2009 Tanaka Akira + + * ext/openssl/ossl_ssl.c (ossl_ssl_def_const): use INT2NUM because + OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG doesn't fit into Fixnum. + Thu Mar 12 18:16:12 2009 Nobuyoshi Nakada * array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c, diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 4025166fec..bf331f6403 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);