mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/rubysocket.h (SOCKLEN_MAX): Expression simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aebb688998
commit
80e4d412d3
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Apr 17 22:07:50 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/rubysocket.h (SOCKLEN_MAX): Expression simplified.
|
||||
|
||||
Wed Apr 17 20:09:19 2013 Aman Gupta <ruby@tmm1.net>
|
||||
|
||||
* compile.c (iseq_add_mark_object): Use new rb_iseq_add_mark_object().
|
||||
|
|
|
@ -93,7 +93,7 @@ typedef int socklen_t;
|
|||
#endif
|
||||
|
||||
#define SOCKLEN_MAX \
|
||||
(0 < (((socklen_t)0)-1) ? \
|
||||
(0 < (socklen_t)-1 ? \
|
||||
~(socklen_t)0 : \
|
||||
(((((socklen_t)1) << (sizeof(socklen_t) * CHAR_BIT - 2)) - 1) * 2 + 1))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue