summaryrefslogtreecommitdiff
path: root/ext/socket/rubysocket.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-17 13:08:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-17 13:08:13 +0000
commit80e4d412d39c00b06adbdd951fcbad43e0977087 (patch)
tree59677294a15a1f5c2675d9162a54f2443a9fbf49 /ext/socket/rubysocket.h
parentaebb6889980a644ea4a14faaab692a5e2cbec3c1 (diff)
* 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
Diffstat (limited to 'ext/socket/rubysocket.h')
-rw-r--r--ext/socket/rubysocket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h
index 1636a38..68f2734 100644
--- a/ext/socket/rubysocket.h
+++ b/ext/socket/rubysocket.h
@@ -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))