From 4e5c08770f0306dfaac7d3c7bc98db29cc1fefb9 Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Tue, 27 Feb 2018 08:43:30 +0100 Subject: Change ints to size_t --- lib/receiver/receiver_impl.cc | 9 ++++----- lib/receiver/receiver_impl.h | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/receiver/receiver_impl.cc b/lib/receiver/receiver_impl.cc index b7c5be2..c7626b5 100644 --- a/lib/receiver/receiver_impl.cc +++ b/lib/receiver/receiver_impl.cc @@ -31,7 +31,6 @@ #include #include #include -#include #include #include @@ -264,7 +263,7 @@ namespace gr * bursts according to burst type for given burst number */ std::vector channel_imp_resp(CHAN_IMP_RESP_LENGTH * d_OSR); - unsigned int inputs_to_process = d_cell_allocation.size(); + size_t inputs_to_process = d_cell_allocation.size(); unsigned char output_binary[BURST_SIZE]; burst_type b_type; int to_consume = 0; @@ -274,7 +273,7 @@ namespace gr inputs_to_process *= 2; /* Process all connected inputs */ - for (int input_nr = 0; input_nr < inputs_to_process; input_nr++) { + for (size_t input_nr = 0; input_nr < inputs_to_process; input_nr++) { input = (gr_complex *) input_items[input_nr]; double signal_pwr = 0; @@ -421,7 +420,7 @@ namespace gr { std::vector v(input, input + noutput_items); float normal_corr_max = -1e6; - float normal_corr_max_tmp; +// float normal_corr_max_tmp; unsigned int burst_start; int max_tn, tseq_num; @@ -980,7 +979,7 @@ namespace gr void receiver_impl::send_burst(burst_counter burst_nr, const unsigned char * burst_binary, uint8_t burst_type, - unsigned int input_nr) + size_t input_nr) { /* Buffer for GSMTAP header and burst */ uint8_t buf[sizeof(gsmtap_hdr) + BURST_SIZE]; diff --git a/lib/receiver/receiver_impl.h b/lib/receiver/receiver_impl.h index 6831bf1..0b032db 100644 --- a/lib/receiver/receiver_impl.h +++ b/lib/receiver/receiver_impl.h @@ -195,7 +195,7 @@ namespace gr { * @param burst_binary - content of the burst * @b_type - type of the burst */ - void send_burst(burst_counter burst_nr, const unsigned char * burst_binary, uint8_t burst_type, unsigned int input_nr); + void send_burst(burst_counter burst_nr, const unsigned char * burst_binary, uint8_t burst_type, size_t input_nr); /** * Configures burst types in different channels -- cgit v1.2.3