* ext/socket/socket.c (host_str): numeric address should be unsigned.

[ruby-core:18971]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-09-26 18:12:43 +00:00
parent 77a9d7c32f
commit 34c7492e2c
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Sat Sep 27 03:12:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/socket/socket.c (host_str): numeric address should be unsigned.
[ruby-core:18971]
Fri Sep 26 22:46:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (primary, brace_block): fix for line number.

View File

@ -869,7 +869,7 @@ host_str(VALUE host, char *hbuf, size_t len)
return NULL;
}
else if (rb_obj_is_kind_of(host, rb_cInteger)) {
long i = NUM2LONG(host);
unsigned long i = NUM2ULONG(host);
make_inetaddr(htonl(i), hbuf, len);
return hbuf;

View File

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2008-09-26"
#define RUBY_RELEASE_DATE "2008-09-27"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20080926
#define RUBY_RELEASE_CODE 20080927
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 9
#define RUBY_RELEASE_DAY 26
#define RUBY_RELEASE_DAY 27
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];