mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (sock_define_const): use INT2NUM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f73dca932c
commit
ab8a2c7c1f
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Jan 9 21:52:47 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/socket.c (sock_define_const): use INT2NUM.
|
||||
|
||||
Fri Jan 9 15:40:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/socket/mkconstants.rb: define macro if default_value is passed.
|
||||
|
|
|
@ -4631,8 +4631,8 @@ sockaddr_string_value_ptr(volatile VALUE *v)
|
|||
static void
|
||||
sock_define_const(const char *name, int value, VALUE mConst)
|
||||
{
|
||||
rb_define_const(rb_cSocket, name, INT2FIX(value));
|
||||
rb_define_const(mConst, name, INT2FIX(value));
|
||||
rb_define_const(rb_cSocket, name, INT2NUM(value));
|
||||
rb_define_const(mConst, name, INT2NUM(value));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue