We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcb4ff4 commit 8603f38Copy full SHA for 8603f38
src/SpecFile_pcf.cpp
@@ -1441,11 +1441,11 @@ bool SpecFile::load_from_pcf( std::istream &input )
1441
break;
1442
}//if( num_channel == 0 )
1443
1444
- if( num_channel < 0 || num_channel>65536 )
+ if( num_channel < 0 || (num_channel > EnergyCalibration::sm_max_channels) )
1445
{
1446
char buffer[64];
1447
snprintf( buffer, sizeof(buffer),
1448
- "Invaid number of channels: %i", int(num_channel) );
+ "Invalid number of channels: %i", int(num_channel) );
1449
throw runtime_error( buffer );
1450
}//if( num_channel < 0 || num_channel>65536 )
1451
0 commit comments