fixed a warn of last commit

This commit is contained in:
wangyu- 2017-11-18 00:03:08 -06:00
parent 3fd198a1e2
commit f58dfe4fdd

View File

@ -283,7 +283,7 @@ int fec_encode_manager_t::input(char *s,int len/*,int &is_first_packet*/)
for(int i=1;i<actual_data_num;i++) for(int i=1;i<actual_data_num;i++)
{ {
u32_t shard_len=blob_encode.get_shard_len(i,0); u32_t shard_len=blob_encode.get_shard_len(i,0);
if(shard_len>fec_mtu) continue; if(shard_len>(u32_t)fec_mtu) continue;
u32_t new_len=(shard_len+header_overhead)*(i+fec_redundant_num); u32_t new_len=(shard_len+header_overhead)*(i+fec_redundant_num);
if(new_len<best_len) if(new_len<best_len)