From a48c8a341807b7bcfe66a8a734b93421851a9841 Mon Sep 17 00:00:00 2001 From: conrad Date: Tue, 30 Mar 2021 17:09:59 +1000 Subject: [PATCH] fix --- include/armadillo_bits/diskio_meat.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/armadillo_bits/diskio_meat.hpp b/include/armadillo_bits/diskio_meat.hpp index 4f391edb..3d3b609a 100644 --- a/include/armadillo_bits/diskio_meat.hpp +++ b/include/armadillo_bits/diskio_meat.hpp @@ -4770,7 +4770,7 @@ diskio::load_ppm_binary(Cube& x, std::istream& f, std::string& err_msg) f >> f_maxval; f.get(); - if( (f_maxval > 0) || (f_maxval <= 65535) ) + if( (f_maxval > 0) && (f_maxval <= 65535) ) { x.set_size(f_n_rows, f_n_cols, 3); @@ -4959,7 +4959,7 @@ diskio::load_ppm_binary(field& x, std::istream& f, std::string& err_msg) f >> f_maxval; f.get(); - if( (f_maxval > 0) || (f_maxval <= 65535) ) + if( (f_maxval > 0) && (f_maxval <= 65535) ) { x.set_size(3); Mat& R = x(0);