Skip to content

Commit 39a0f1e

Browse files
committed
runNumber fix
1 parent 6dccf9e commit 39a0f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Options ProcessCommandLineOptions(int argc, char* const argv[]) {
248248
if (i + 1 < argc) { // Make sure we aren't at the end of argv!
249249
options.runNumber =
250250
stoi(argv[++i]); // Increment 'i' so we don't get the argument as the next argv[i].
251-
if (options.runNumber <= 0) {
251+
if (options.runNumber < 0) {
252252
cout << "--seed option error: seed must be positive number" << endl;
253253
exit(1);
254254
}
@@ -359,7 +359,7 @@ void Application::Run(const CommandLineOptions::Options& options) {
359359

360360
run->LoadConfigFromFile(inputRmlClean);
361361

362-
if (options.runNumber > 0) {
362+
if (options.runNumber >= 0) {
363363
run->SetRunNumber(options.runNumber);
364364
}
365365

0 commit comments

Comments
 (0)