diff options
| author | Chris Kiefer <chrisk13fer@gmail.com> | 2013-10-18 06:29:04 -0700 |
|---|---|---|
| committer | Chris Kiefer <chrisk13fer@gmail.com> | 2013-10-18 06:29:04 -0700 |
| commit | 5387dce0877dcfee9fa7cefd7ad615ca0e05324a (patch) | |
| tree | 3149ee20ed7cca4ecb921b9b0b7ed6d407635ff5 | |
| parent | eabb1855777c8451c8a35bae4309ee112ac4460e (diff) | |
| parent | 72514b241a0cc95807eb09b5e6cab0c966edf2e6 (diff) | |
Merge pull request #17 from jamiebullock/master
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); |
