summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-17 05:36:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-17 05:36:59 +0000
commitd019ce0ad1b8e55e511427193b1ccb391d865ef9 (patch)
treeb17c2f69671341fb72b95d379005bfe507c44f09 /win32/win32.c
parent396f32c98eeef66f67c87336deab94774db00650 (diff)
* 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
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c6
1 files changed, 3 insertions, 3 deletions
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);
}