Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Oct 6, 2016
1 parent 96345eb commit 94ecff4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/CommandLineParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ ParseStatus parse(int &argc, char **argv, std::initializer_list<Option<T> > opts
break;
}

const Option<T> *opt = (idx == -1 ? shortOptions.value(c) : longOptions.value(idx));
const Option<T> *opt = (c ? shortOptions.value(c) : longOptions.value(idx));
assert(opt);
assert(opt->option);
Expand Down

0 comments on commit 94ecff4

Please sign in to comment.