aboutsummaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-21 10:31:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-21 10:31:11 +0000
commitc0c3988f03b7cd6738c1f9dcf8fe5016a0907f40 (patch)
tree5d9ac85359338150d3eec142aabcb9a395498340 /dir.c
parent4f2e5256506597b6271cd648ac3380ba034e05ce (diff)
downloadruby-c0c3988f03b7cd6738c1f9dcf8fe5016a0907f40.tar.gz
Suppress more -Wparentheses warnings
[Fix GH-1958] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 2c1116eea9..c8aa40099b 100644
--- a/dir.c
+++ b/dir.c
@@ -177,7 +177,7 @@ has_nonascii(const char *ptr, size_t len)
#endif
#ifndef IFTODT
-# define IFTODT(m) (((m) & S_IFMT) / ((~S_IFMT & S_IFMT-1) + 1))
+# define IFTODT(m) (((m) & S_IFMT) / ((~S_IFMT & (S_IFMT-1)) + 1))
#endif
typedef enum {