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@humpty.(none)>2011-04-11 21:49:46 +0400
committerJohn Langford <jl@humpty.(none)>2011-04-11 21:49:46 +0400
commit87f0c2a8902d0bdbb79f1415510dc8824d561111 (patch)
tree83310a16a7f5703d4be2a6efc9c3f6209e8fd826 /parser.cc
parent796ba13a199b9e13e42ae2f1eba73299f9216de3 (diff)
fixed Sanmi's bug in --ignore
Diffstat (limited to 'parser.cc')
-rw-r--r--parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.cc b/parser.cc
index 1c620764..4ad4410c 100644
--- a/parser.cc
+++ b/parser.cc
@@ -555,7 +555,7 @@ void setup_example(parser* p, example* ae)
if (global.ignore[*i])
{//delete namespace
ae->atomics[*i].erase();
- memmove(i,i+1,ae->indices.end - (i+1));
+ memmove(i,i+1,(ae->indices.end - (i+1))*sizeof(size_t));
ae->indices.end--;
i--;
}