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

ruby-changes:39380

From: tenderlove <ko1@a...>
Date: Sat, 1 Aug 2015 07:02:33 +0900 (JST)
Subject: [ruby-changes:39380] tenderlove:r51461 (trunk): * ext/openssl/ossl_ssl.c (Init_ossl_ssl): OpenSSL declares these

tenderlove	2015-08-01 07:01:49 +0900 (Sat, 01 Aug 2015)

  New Revision: 51461

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

  Log:
    * ext/openssl/ossl_ssl.c (Init_ossl_ssl): OpenSSL declares these
      constants as longs, so we should follow that and use LONG2NUM.
      http://git.io/vOqxD

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_ssl.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51460)
+++ ChangeLog	(revision 51461)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Aug  1 06:54:36 2015  Aaron Patterson <tenderlove@r...>
+
+	* ext/openssl/ossl_ssl.c (Init_ossl_ssl): OpenSSL declares these
+	  constants as longs, so we should follow that and use LONG2NUM.
+	  http://git.io/vOqxD
+
 Sat Aug  1 04:06:29 2015  Aaron Patterson <tenderlove@r...>
 
 	* ext/openssl/ossl_ssl.c (ossl_call_tmp_dh_callback): change callback
Index: ext/openssl/ossl_ssl.c
===================================================================
--- ext/openssl/ossl_ssl.c	(revision 51460)
+++ ext/openssl/ossl_ssl.c	(revision 51461)
@@ -2347,7 +2347,7 @@ Init_ossl_ssl(void) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L2347
 # endif
 #endif
 
-#define ossl_ssl_def_const(x) rb_define_const(mSSL, #x, INT2NUM(SSL_##x))
+#define ossl_ssl_def_const(x) rb_define_const(mSSL, #x, LONG2NUM(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/

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