From 72514b241a0cc95807eb09b5e6cab0c966edf2e6 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Fri, 18 Oct 2013 14:23:09 +0100 Subject: Add explicit cast from ifstream to bool to fix compile error --- maximilian.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'maximilian.cpp') diff --git a/maximilian.cpp b/maximilian.cpp index e89a8b7..b3bc07a 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -572,7 +572,7 @@ bool maxiSample::read() { bool result; ifstream inFile( myPath.c_str(), ios::in | ios::binary); - result = inFile; + result = (bool)inFile; if (inFile) { bool datafound = false; inFile.seekg(4, ios::beg); -- cgit v1.3