fix
This commit is contained in:
@@ -4770,7 +4770,7 @@ diskio::load_ppm_binary(Cube<eT>& 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<T1>& 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<eT>& R = x(0);
|
||||
|
||||
Reference in New Issue
Block a user