[前][次][番号順一覧][スレッド一覧]

ruby-changes:11303

From: akr <ko1@a...>
Date: Thu, 12 Mar 2009 22:18:33 +0900 (JST)
Subject: [ruby-changes:11303] Ruby:r22916 (trunk): * ext/openssl/ossl_ssl.c (ossl_ssl_def_const): use INT2NUM because

akr	2009-03-12 22:16:19 +0900 (Thu, 12 Mar 2009)

  New Revision: 22916

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22916

  Log:
    * ext/openssl/ossl_ssl.c (ossl_ssl_def_const): use INT2NUM because
      OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG doesn't fit into Fixnum.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_ssl.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22915)
+++ ChangeLog	(revision 22916)
@@ -1,3 +1,8 @@
+Thu Mar 12 22:14:01 2009  Tanaka Akira  <akr@f...>
+
+	* 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  <nobu@r...>
 
 	* array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c,
Index: ext/openssl/ossl_ssl.c
===================================================================
--- ext/openssl/ossl_ssl.c	(revision 22915)
+++ ext/openssl/ossl_ssl.c	(revision 22916)
@@ -1554,7 +1554,7 @@
     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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]