[前][次][番号順一覧][スレッド一覧]

ruby-changes:12545

From: usa <ko1@a...>
Date: Thu, 23 Jul 2009 14:39:20 +0900 (JST)
Subject: [ruby-changes:12545] Ruby:r24253 (trunk): * win32/win32.c (rb_w32_{open,wopen}): fixed typos. these conditions

usa	2009-07-23 14:36:57 +0900 (Thu, 23 Jul 2009)

  New Revision: 24253

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24253

  Log:
    * win32/win32.c (rb_w32_{open,wopen}): fixed typos. these conditions
      mean to call runtime's open() if textmode.

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24252)
+++ ChangeLog	(revision 24253)
@@ -1,3 +1,8 @@
+Thu Jul 23 14:35:02 2009  NAKAMURA Usaku  <usa@r...>
+
+	* win32/win32.c (rb_w32_{open,wopen}): fixed typos. these conditions
+	  mean to call runtime's open() if textmode.
+
 Thu Jul 23 08:53:24 2009  Eric Hodel  <drbrain@s...>
 
 	* lib/rdoc/markup/simple_markup/: Remove useless directory.
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 24252)
+++ win32/win32.c	(revision 24253)
@@ -4472,7 +4472,7 @@
     pmode = va_arg(arg, int);
     va_end(arg);
 
-    if ((oflag & O_TEXT) || !(oflag & ~O_BINARY)) {
+    if ((oflag & O_TEXT) || !(oflag & O_BINARY)) {
 	return _open(file, oflag, pmode);
     }
 
@@ -4501,7 +4501,7 @@
     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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]