mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Fix comparison
This commit is contained in:
parent
6cc1de7118
commit
8de5ea8737
@ -67,7 +67,7 @@ int beamformer::work(int noutput_items, gr_vector_const_void_star &input_items,
|
|||||||
for (int n = 0; n < noutput_items; n++)
|
for (int n = 0; n < noutput_items; n++)
|
||||||
{
|
{
|
||||||
sum = gr_complex(0, 0);
|
sum = gr_complex(0, 0);
|
||||||
for (int i = 0; i < weight_vector.size(); i++)
|
for (unsigned int i = 0; i < weight_vector.size(); i++)
|
||||||
{
|
{
|
||||||
sum = sum + (reinterpret_cast<const gr_complex *>(input_items[i]))[n] * weight_vector[i];
|
sum = sum + (reinterpret_cast<const gr_complex *>(input_items[i]))[n] * weight_vector[i];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user