From d019ce0ad1b8e55e511427193b1ccb391d865ef9 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 17 Feb 2003 05:36:59 +0000 Subject: * win32/win32.c (rb_w32_opendir, rb_w32_utime): need parens. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'win32/win32.c') diff --git a/win32/win32.c b/win32/win32.c index f19976934e..57087bba89 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1243,13 +1243,13 @@ rb_w32_opendir(const char *filename) // check to see if we've got a directory // - if ((rb_w32_stat (filename, &sbuf) < 0 || + if ((rb_w32_stat(filename, &sbuf) < 0 || ( #ifdef __BORLANDC__ (unsigned short)(sbuf.st_mode) #else sbuf.st_mode #endif - & _S_IFDIR == 0) && + & _S_IFDIR) == 0) && (!ISALPHA(filename[0]) || filename[1] != ':' || filename[2] != '\0' || ((1 << (filename[0] & 0x5f) - 'A') & GetLogicalDrives()) == 0)) { return NULL; @@ -3151,7 +3151,7 @@ rb_w32_utime(const char *path, struct utimbuf *times) if (rb_w32_stat(path, &stat)) { return -1; } - if (stat.st_mode & S_IFDIR == 0 || IsWin95()) { + if ((stat.st_mode & S_IFDIR) == 0 || IsWin95()) { return utime(path, times); } -- cgit v1.2.3