mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in
IPAddr#to_range. a patch from okkez <okkez000 AT gmail.com> in [ruby-dev:35091]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4b843da869
commit
e12e0b337d
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Jul 7 17:12:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in
|
||||
IPAddr#to_range. a patch from okkez <okkez000 AT gmail.com> in
|
||||
[ruby-dev:35091].
|
||||
|
||||
Mon Jul 7 01:24:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (rb_file_s_extname): fix for file name with spaces.
|
||||
|
|
|
@ -483,7 +483,7 @@ class IPAddr
|
|||
if prefixlen
|
||||
mask!(prefixlen)
|
||||
else
|
||||
@mask_addr = (family == Socket::AF_INET) ? IN4MASK : IN6MASK
|
||||
@mask_addr = (@family == Socket::AF_INET) ? IN4MASK : IN6MASK
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue