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>2012-12-14 07:24:08 +0400
committerJohn Langford <jl@hunch.net>2012-12-14 07:24:08 +0400
commitf78ec38db5d4a8dcb933ff9e6a3ec82d77e07dd4 (patch)
treec924ffaa17943836a3722d21ac7c289c725bef86 /vowpalwabbit/sender.cc
parent8926513b8d1428ce8ee0a4bba46fde4bc7a6187c (diff)
index() changed to size() to match stl
Diffstat (limited to 'vowpalwabbit/sender.cc')
-rw-r--r--vowpalwabbit/sender.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vowpalwabbit/sender.cc b/vowpalwabbit/sender.cc
index ae71caae..181a3598 100644
--- a/vowpalwabbit/sender.cc
+++ b/vowpalwabbit/sender.cc
@@ -47,7 +47,7 @@ void parse_send_args(po::variables_map& vm, vector<string> pairs)
void send_features(io_buf *b, example* ec)
{
// note: subtracting 1 b/c not sending constant
- output_byte(*b,ec->indices.index()-1);
+ output_byte(*b,ec->indices.size()-1);
for (size_t* i = ec->indices.begin; i != ec->indices.end; i++) {
if (*i == constant_namespace)