mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_ssl_session.c: Respect T_BIGNUM time values. Patch by
Tomoyuki Chikanaga. [ Ruby 1.9 - Bug #4919 ] [ruby-dev:43869] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dc8f58f6e8
commit
8d836a15e4
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed Jun 22 22:21:17 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
|
||||
|
||||
* 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@gmail.com>
|
||||
|
||||
* ext/socket/depend (SOCK_HEADERS): use $(top_srcdir) instaed of
|
||||
|
|
|
@ -149,7 +149,7 @@ static VALUE ossl_ssl_session_get_timeout(VALUE self)
|
|||
\
|
||||
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"); \
|
||||
|
|
Loading…
Add table
Reference in a new issue