Skip to content

Commit 1da5a48

Browse files
committed
merge revision(s) 19593:
* ext/socket/socket.c (host_str): numeric address should be unsigned. [ruby-core:18971] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@21798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent fade72e commit 1da5a48

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Tue Jan 27 15:17:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* ext/socket/socket.c (host_str): numeric address should be unsigned.
4+
[ruby-core:18971]
5+
16
Mon Jan 26 11:12:03 2009 NAKAMURA Usaku <usa@ruby-lang.org>
27

38
* lib/tmpdir.rb: setup buffer with nul characters instead of spaces.

ext/socket/socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ host_str(host, hbuf, len)
840840
return NULL;
841841
}
842842
else if (rb_obj_is_kind_of(host, rb_cInteger)) {
843-
long i = NUM2LONG(host);
843+
unsigned long i = NUM2ULONG(host);
844844

845845
make_inetaddr(htonl(i), hbuf, len);
846846
return hbuf;

version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#define RUBY_VERSION "1.8.7"
2-
#define RUBY_RELEASE_DATE "2009-01-26"
2+
#define RUBY_RELEASE_DATE "2009-01-27"
33
#define RUBY_VERSION_CODE 187
4-
#define RUBY_RELEASE_CODE 20090126
5-
#define RUBY_PATCHLEVEL 96
4+
#define RUBY_RELEASE_CODE 20090127
5+
#define RUBY_PATCHLEVEL 97
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8
99
#define RUBY_VERSION_TEENY 7
1010
#define RUBY_RELEASE_YEAR 2009
1111
#define RUBY_RELEASE_MONTH 1
12-
#define RUBY_RELEASE_DAY 26
12+
#define RUBY_RELEASE_DAY 27
1313

1414
#ifdef RUBY_EXTERN
1515
RUBY_EXTERN const char ruby_version[];

0 commit comments

Comments
 (0)