diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-17 13:08:13 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-17 13:08:13 +0000 |
commit | 80e4d412d39c00b06adbdd951fcbad43e0977087 (patch) | |
tree | 59677294a15a1f5c2675d9162a54f2443a9fbf49 /ext/socket | |
parent | aebb6889980a644ea4a14faaab692a5e2cbec3c1 (diff) | |
download | ruby-80e4d412d39c00b06adbdd951fcbad43e0977087.tar.gz |
* 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')
-rw-r--r-- | ext/socket/rubysocket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h index 1636a383cb..68f2734241 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)) |