Skip to content

Commit

Permalink
Change from strcmp to std::string operator== (VowpalWabbit#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits authored and Borislav Nikolov committed Mar 7, 2019
1 parent 60cd7c0 commit c2beb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vowpalwabbit/parse_args.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ void parse_output_preds(options_i& options, vw& all)
if (options.was_supplied("binary"))
all.trace_message << "Warning: --raw_predictions has no defined value when --binary specified, expect no output" << endl;
}
if (strcmp(raw_predictions.c_str(),"stdout")==0)
if (raw_predictions == "stdout")
all.raw_prediction = 1; //stdout
else
{
Expand Down

0 comments on commit c2beb45

Please sign in to comment.