diff options
author | U-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com> | 2013-01-09 00:50:00 +0400 |
---|---|---|
committer | U-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com> | 2013-01-09 00:50:00 +0400 |
commit | 92552edf319b5d2945526eab1cae3dab52b17dbe (patch) | |
tree | 13dd43aedcf965801539db5bc0c2faa84409ab19 /vowpalwabbit/sender.cc | |
parent | c5addffa18423283788d04912e44ea86994824c4 (diff) |
zeroing out warnings
Diffstat (limited to 'vowpalwabbit/sender.cc')
-rw-r--r-- | vowpalwabbit/sender.cc | 4 |
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); |