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

ruby-changes:18145

From: akr <ko1@a...>
Date: Fri, 10 Dec 2010 22:39:57 +0900 (JST)
Subject: [ruby-changes:18145] Ruby:r30166 (trunk): * dln_find.c: parenthesize macro arguments.

akr	2010-12-10 22:34:08 +0900 (Fri, 10 Dec 2010)

  New Revision: 30166

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

  Log:
    * dln_find.c: parenthesize macro arguments.

  Modified files:
    trunk/ChangeLog
    trunk/dln_find.c

Index: dln_find.c
===================================================================
--- dln_find.c	(revision 30165)
+++ dln_find.c	(revision 30166)
@@ -57,7 +57,7 @@
 #include <sys/stat.h>
 
 #ifndef S_ISDIR
-#   define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR)
+#   define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
 #endif
 
 #ifdef HAVE_SYS_PARAM_H
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30165)
+++ ChangeLog	(revision 30166)
@@ -1,3 +1,7 @@
+Fri Dec 10 22:33:39 2010  Tanaka Akira  <akr@f...>
+
+	* dln_find.c: parenthesize macro arguments.
+
 Fri Dec 10 20:05:42 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* template/id.h.tmpl (ruby_method_ids): suppress warnings.

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

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