From fe87f831e0c319817a06c4bcc5c7a2cd3a4d6693 Mon Sep 17 00:00:00 2001 From: pete meltzer Date: Thu, 24 May 2018 15:57:09 +0100 Subject: [PATCH] =?UTF-8?q?fixed=20'cannot=20convert=20=E2=80=98std::ifstr?= =?UTF-8?q?eam=20{aka=20std::basic=5Fifstream}=E2=80=99=20to=20?= =?UTF-8?q?=E2=80=98bool=E2=80=99=20in=20return'=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- graphlet_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphlet_utils.cpp b/graphlet_utils.cpp index f7c59c9..a85372f 100755 --- a/graphlet_utils.cpp +++ b/graphlet_utils.cpp @@ -37,9 +37,9 @@ using namespace std; bool fexists(const char *filename) { ifstream ifile(filename); #ifdef WIN32 - return ifile!=0; + return (bool) ifile!=0; #else - return ifile; + return (bool) ifile; #endif }