[前][次][番号順一覧][スレッド一覧]

ruby-changes:28286

From: akr <ko1@a...>
Date: Wed, 17 Apr 2013 22:08:23 +0900 (JST)
Subject: [ruby-changes:28286] akr:r40338 (trunk): * ext/socket/rubysocket.h (SOCKLEN_MAX): Expression simplified.

akr	2013-04-17 22:08:13 +0900 (Wed, 17 Apr 2013)

  New Revision: 40338

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40338

  Log:
    * ext/socket/rubysocket.h (SOCKLEN_MAX): Expression simplified.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/rubysocket.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40337)
+++ ChangeLog	(revision 40338)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Apr 17 22:07:50 2013  Tanaka Akira  <akr@f...>
+
+	* ext/socket/rubysocket.h (SOCKLEN_MAX): Expression simplified.
+
 Wed Apr 17 20:09:19 2013  Aman Gupta  <ruby@t...>
 
 	* compile.c (iseq_add_mark_object): Use new rb_iseq_add_mark_object().
Index: ext/socket/rubysocket.h
===================================================================
--- ext/socket/rubysocket.h	(revision 40337)
+++ ext/socket/rubysocket.h	(revision 40338)
@@ -93,7 +93,7 @@ typedef int socklen_t; https://github.com/ruby/ruby/blob/trunk/ext/socket/rubysocket.h#L93
 #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))
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]