diff options
| author | Jamie Bullock <jamie@jamiebullock.com> | 2013-10-18 14:23:09 +0100 |
|---|---|---|
| committer | Jamie Bullock <jamie@jamiebullock.com> | 2013-10-18 14:23:09 +0100 |
| commit | 72514b241a0cc95807eb09b5e6cab0c966edf2e6 (patch) | |
| tree | 3149ee20ed7cca4ecb921b9b0b7ed6d407635ff5 | |
| parent | eabb1855777c8451c8a35bae4309ee112ac4460e (diff) | |
Add explicit cast from ifstream to bool to fix compile error
| -rw-r--r-- | maximilian.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
