Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2014-01-22 20:52:02 +0400
committerJohn Langford <jl@hunch.net>2014-01-22 20:52:02 +0400
commit77f7b64ea9cafa7e783823af173865745876c3fb (patch)
treef6ad581103e170e68f63cc43bd53040c564805da /vowpalwabbit/sender.cc
parenta0fcc75614751b4bb3e4235a218198646cf399d9 (diff)
conversion to &
Diffstat (limited to 'vowpalwabbit/sender.cc')
-rw-r--r--vowpalwabbit/sender.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/sender.cc b/vowpalwabbit/sender.cc
index 91970efc..dca0682f 100644
--- a/vowpalwabbit/sender.cc
+++ b/vowpalwabbit/sender.cc
@@ -67,7 +67,7 @@ void receive_result(sender& s)
ec->loss = s.all->loss->getLoss(s.all->sd, ec->final_prediction, ld->label) * ld->weight;
- return_simple_example(*(s.all), NULL, ec);
+ return_simple_example(*(s.all), NULL, *ec);
}
void learn(sender* s, learner& base, example& ec)
@@ -83,7 +83,7 @@ void receive_result(sender& s)
s->delay_ring[s->sent_index++ % s->all->p->ring_size] = &ec;
}
- void finish_example(vw& all, sender*, example*ec)
+ void finish_example(vw& all, sender*, example& ec)
{}
void end_examples(sender* s)