diff options
author | John Langford <jl@hunch.net> | 2014-01-21 21:51:04 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-01-21 21:51:04 +0400 |
commit | a0fcc75614751b4bb3e4235a218198646cf399d9 (patch) | |
tree | d3b0249dab5761ce9b0c659ad0a32522eedc9306 /vowpalwabbit/learner.cc | |
parent | 8b6fe928a1c8595e158a69bcd52490d874b38297 (diff) |
changed pointers to references
Diffstat (limited to 'vowpalwabbit/learner.cc')
-rw-r--r-- | vowpalwabbit/learner.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/learner.cc b/vowpalwabbit/learner.cc index 1b936991..6900263a 100644 --- a/vowpalwabbit/learner.cc +++ b/vowpalwabbit/learner.cc @@ -17,7 +17,7 @@ namespace LEARNER { if (ec->indices.size() > 1) // one nonconstant feature. { - all->l->learn(ec); + all->l->learn(*ec); all->l->finish_example(*all, ec); } else if (ec->end_pass) @@ -41,7 +41,7 @@ namespace LEARNER } else { - all->l->learn(ec); + all->l->learn(*ec); if(all->early_terminate) { |