summaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 345fcdd15..5d79dd17b 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4074,7 +4074,7 @@ rb_w32_open(const char *file, int oflag, ...)
SECURITY_ATTRIBUTES sec;
HANDLE h;
- if ((oflag & O_TEXT) || !(oflag & ~O_BINARY)) {
+ if ((oflag & O_TEXT) || !(oflag & O_BINARY)) {
va_list arg;
int pmode;
va_start(arg, oflag);