1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00

Fix comparisons (warning: -Wsign-compare)

This commit is contained in:
Carles Fernandez 2019-06-17 23:42:16 +02:00
parent 6757fe3e80
commit 3bc8091745
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 4 additions and 4 deletions

View File

@ -100,14 +100,14 @@ int Gnss_Sdr_Valve::work(int noutput_items,
return 0;
}
// multichannel support
for (int ch = 0; ch < output_items.size(); ch++)
for (unsigned int ch = 0; ch < output_items.size(); ch++)
{
memcpy(output_items[ch], input_items[ch], n * input_signature()->sizeof_stream_item(ch));
}
d_ncopied_items += n;
return n;
}
for (int ch = 0; ch < output_items.size(); ch++)
for (unsigned int ch = 0; ch < output_items.size(); ch++)
{
memcpy(output_items[ch], input_items[ch], noutput_items * input_signature()->sizeof_stream_item(ch));
}

View File

@ -218,7 +218,7 @@ void GNSSFlowgraph::connect()
// Signal Source (i) > Signal conditioner (i) >
#ifndef ENABLE_FPGA
int RF_Channels = 0;
int signal_conditioner_ID = 0;
unsigned int signal_conditioner_ID = 0;
for (int i = 0; i < sources_count_; i++)
{
try