[ruby-cvs:61517] naruse:r54355 (ruby_2_3): merge revision(s) 53557, 53561: [Backport #11958]

naruse at ruby-lang.org naruse at ruby-lang.org
Tue Mar 29 14:16:47 JST 2016


naruse	2016-03-29 14:16:47 +0900 (Tue, 29 Mar 2016)

  New Revision: 54355

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

  Log:
    merge revision(s) 53557,53561: [Backport #11958]
    
    * ext/socket/option.c (check_size): extract a macro to check
      binary data size, with a consistent message.
    
    * ext/socket/option.c (sockopt_byte): fix error message,
      sizeof(int) differs from sizeof(unsigned char) in general.
    
    * ext/socket/option.c (sockopt_bool): relax boolean size to be one
      too not only sizeof(int).  Winsock getsockopt() returns a single
      byte as a boolean socket option.  [ruby-core:72730] [Bug #11958]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/ext/socket/option.c
    branches/ruby_2_3/test/socket/test_sockopt.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list