diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-17 05:36:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-17 05:36:59 +0000 |
commit | e875f9616a9a19fd4f14c3d55b95e80ded0b4859 (patch) | |
tree | b17c2f69671341fb72b95d379005bfe507c44f09 | |
parent | 815538225857c53fb1b7c54fbb44d57ae72b0624 (diff) | |
download | ruby-e875f9616a9a19fd4f14c3d55b95e80ded0b4859.tar.gz ruby-e875f9616a9a19fd4f14c3d55b95e80ded0b4859.tar.xz ruby-e875f9616a9a19fd4f14c3d55b95e80ded0b4859.zip |
* win32/win32.c (rb_w32_opendir, rb_w32_utime): need parens.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | win32/win32.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Mon Feb 17 14:36:56 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net> + + * win32/win32.c (rb_w32_opendir, rb_w32_utime): need parens. + Mon Feb 17 14:13:25 2003 NAKAMURA Usaku <usa@ruby-lang.org> * win32/win32.c (link): implement with CreateHardLink(). diff --git a/win32/win32.c b/win32/win32.c index f19976934..57087bba8 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); } |