Andrew Talbot : msvcrt: Remove unneeded cast.

Alexandre Julliard julliard at winehq.org
Mon Dec 24 14:21:33 CST 2007


Module: wine
Branch: master
Commit: edaa0fbc1391d1a575c53c6e075b32ee52e8e240
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=edaa0fbc1391d1a575c53c6e075b32ee52e8e240

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Fri Dec 21 17:05:36 2007 +0000

msvcrt: Remove unneeded cast.

---

 dlls/msvcrt/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c
index 8bacffa..b4ccdc0 100644
--- a/dlls/msvcrt/file.c
+++ b/dlls/msvcrt/file.c
@@ -2223,7 +2223,7 @@ int CDECL MSVCRT_fgetc(MSVCRT_FILE* file)
     } else
       j = MSVCRT__filbuf(file);
     if (!(MSVCRT_fdesc[file->_file].wxflag & WX_TEXT)
-    || ((j != '\r') || (file->_cnt && ((char *)file->_ptr)[0] != '\n')))
+    || ((j != '\r') || (file->_cnt && file->_ptr[0] != '\n')))
         return j;
   } while(1);
 }




More information about the wine-cvs mailing list