mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
* bignum.c (get2comp): calculate proper 2's complement for
negative numbers. a bug in normalizing negative numbers reported from Honda Hiroki <hhonda@ipflex.com>. * ext/socket/socket.c (ruby_getaddrinfo__aix): merged a patch from KUBO Takehiro <kubo@jiubao.org> to support AIX. [ruby-list:40832] * lib/yaml/rubytypes.rb (Array::to_yaml): merged a patch from Tilman Sauerbeck <tilman@code-monkey.de>. [ruby-core:05055] * lib/yaml/rubytypes.rb (Hash::to_yaml): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aac8fbf09f
commit
f105a01a3e
6 changed files with 58 additions and 10 deletions
|
@ -77,7 +77,7 @@ hash_proc = Proc.new { |type, val|
|
|||
elsif Hash === val
|
||||
type, obj_class = YAML.read_type_class( type, Hash )
|
||||
if obj_class != Hash
|
||||
o = obj_class.new
|
||||
o = obj_class.allocate
|
||||
o.update( val )
|
||||
val = o
|
||||
end
|
||||
|
@ -236,7 +236,7 @@ array_proc = Proc.new { |type, val|
|
|||
if Array === val
|
||||
type, obj_class = YAML.read_type_class( type, Array )
|
||||
if obj_class != Array
|
||||
o = obj_class.new
|
||||
o = obj_class.allocate
|
||||
o.concat( val )
|
||||
val = o
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue