From 7c56a7d0833863767ea9b044e39442b2e75245a8 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 22 May 2018 10:29:02 +0200 Subject: [PATCH] fix compiler warning --- srsenb/src/mac/mac.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srsenb/src/mac/mac.cc b/srsenb/src/mac/mac.cc index 9039ea6b3..38c6ac43a 100644 --- a/srsenb/src/mac/mac.cc +++ b/srsenb/src/mac/mac.cc @@ -659,8 +659,7 @@ int mac::get_mch_sched(bool is_mcch, dl_sched_t *dl_sched_res) } } if(mch.current_sf_allocation_num <= mtch_stop) { - int requested_bytes = (mcs_data.tbs/8 > mch.mtch_sched[mtch_index].lcid_buffer_size)?(mch.mtch_sched[mtch_index].lcid_buffer_size):((mcs_data.tbs/8) - 2); - + int requested_bytes = (mcs_data.tbs/8 > (int)mch.mtch_sched[mtch_index].lcid_buffer_size)?(mch.mtch_sched[mtch_index].lcid_buffer_size):((mcs_data.tbs/8) - 2); int bytes_received = ue_db[SRSLTE_MRNTI]->read_pdu(current_lcid, mtch_payload_buffer, requested_bytes); mch.pdu[0].lcid = current_lcid; mch.pdu[0].nbytes = bytes_received;