Skip to content

Commit

Permalink
runNumber fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Mar 9, 2024
1 parent 6dccf9e commit 39a0f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Application.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ Options ProcessCommandLineOptions(int argc, char* const argv[]) {
if (i + 1 < argc) { // Make sure we aren't at the end of argv!
options.runNumber =
stoi(argv[++i]); // Increment 'i' so we don't get the argument as the next argv[i].
if (options.runNumber <= 0) {
if (options.runNumber < 0) {
cout << "--seed option error: seed must be positive number" << endl;
exit(1);
}
Expand Down Expand Up @@ -359,7 +359,7 @@ void Application::Run(const CommandLineOptions::Options& options) {

run->LoadConfigFromFile(inputRmlClean);

if (options.runNumber > 0) {
if (options.runNumber >= 0) {
run->SetRunNumber(options.runNumber);
}

Expand Down

0 comments on commit 39a0f1e

Please sign in to comment.