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:
authorU-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com>2013-01-09 00:50:00 +0400
committerU-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com>2013-01-09 00:50:00 +0400
commit92552edf319b5d2945526eab1cae3dab52b17dbe (patch)
tree13dd43aedcf965801539db5bc0c2faa84409ab19 /vowpalwabbit/sender.cc
parentc5addffa18423283788d04912e44ea86994824c4 (diff)
zeroing out warnings
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 618d2dbc..18001d64 100644
--- a/vowpalwabbit/sender.cc
+++ b/vowpalwabbit/sender.cc
@@ -47,9 +47,9 @@ 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.size()-1);
+ output_byte(*b,(unsigned char) (ec->indices.size()-1));
- for (size_t* i = ec->indices.begin; i != ec->indices.end; i++) {
+ for (unsigned char* i = ec->indices.begin; i != ec->indices.end; i++) {
if (*i == constant_namespace)
continue;
output_features(*b, *i, ec->atomics[*i].begin, ec->atomics[*i].end);