diff options
Diffstat (limited to 'examples/pgm_image.h')
-rw-r--r-- | examples/pgm_image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pgm_image.h b/examples/pgm_image.h index 15e99e4..1328d75 100644 --- a/examples/pgm_image.h +++ b/examples/pgm_image.h @@ -197,7 +197,7 @@ bool PGMImage<Real>::WriteToFile(std::string filename) const { outputfile << static_cast<int>(data_[i] + 0.5) << ' '; } - return outputfile; // Returns true/false + return bool(outputfile); // Returns true/false } namespace { |