ruby-changes:20155
From: emboss <ko1@a...>
Date: Wed, 22 Jun 2011 22:28:29 +0900 (JST)
Subject: [ruby-changes:20155] emboss:r32203 (trunk): * ext/openssl/ossl_ssl_session.c: Respect T_BIGNUM time values. Patch by
emboss 2011-06-22 22:28:18 +0900 (Wed, 22 Jun 2011) New Revision: 32203 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32203 Log: * ext/openssl/ossl_ssl_session.c: Respect T_BIGNUM time values. Patch by Tomoyuki Chikanaga. [ Ruby 1.9 - Bug #4919 ] [ruby-dev:43869] Modified files: trunk/ChangeLog trunk/ext/openssl/ossl_ssl_session.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32202) +++ ChangeLog (revision 32203) @@ -1,3 +1,9 @@ +Wed Jun 22 22:21:17 2011 Martin Bosslet <Martin.Bosslet@g...> + + * ext/openssl/ossl_ssl_session.c: Respect T_BIGNUM time values. Patch by + Tomoyuki Chikanaga. + [ Ruby 1.9 - Bug #4919 ] [ruby-dev:43869] + Wed Jun 22 21:29:25 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * ext/socket/depend (SOCK_HEADERS): use $(top_srcdir) instaed of Index: ext/openssl/ossl_ssl_session.c =================================================================== --- ext/openssl/ossl_ssl_session.c (revision 32202) +++ ext/openssl/ossl_ssl_session.c (revision 32203) @@ -149,7 +149,7 @@ \ if (rb_obj_is_instance_of(time_v, rb_cTime)) { \ time_v = rb_funcall(time_v, rb_intern("to_i"), 0); \ - } else if (FIXNUM_P(time_v)) { \ + } else if (FIXNUM_P(time_v) || TYPE(time_v) == T_BIGNUM) { \ ; \ } else { \ ossl_raise(rb_eArgError, "unknown type"); \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/