From 726c838eadc06fa40e55871ac2fcb2ceadf9b8c8 Mon Sep 17 00:00:00 2001 From: qeed Date: Sat, 13 Jun 2009 16:42:21 +0000 Subject: [PATCH] Fix warning errors in file.cpp line 245 and 262 --- src/file.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file.cpp b/src/file.cpp index 31056a5c..7e5056d8 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -242,7 +242,7 @@ zpfail: unzCloseCurrentFile(tz); unzClose(tz); - FCEUFILE *fceufp=fceufp = new FCEUFILE(); + FCEUFILE *fceufp = new FCEUFILE(); fceufp->stream = ms; fceufp->size = size; return fceufp; @@ -259,7 +259,7 @@ FCEUFILE * FCEU_fopen(const char *path, const char *ipsfn, char *mode, char *ext bool read = (std::string)mode == "rb"; bool write = (std::string)mode == "wb"; - if(read&&write || (!read&&!write)) + if((read&&write) || (!read&&!write)) { FCEU_PrintError("invalid file open mode specified (only wb and rb are supported)"); return 0; @@ -764,4 +764,4 @@ void FCEUARCHIVEFILEINFO::FilterByExtension(const char** ext) this->erase(begin()+i); ok: ; } -} \ No newline at end of file +}