From 9f62b92258941e19f1f86e9189ab6488a9c16fae Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 25 Jan 2020 05:14:13 +0700 Subject: [PATCH] tests/alloc: fix implicit conversion from 'double' to 'int8_t' Looks pretty much like a typo. Both '-1' and '.' symbols are neighbours in QWERTZ keyboard layout, so it must be -1. Found by Clang [-Wliteral-conversion]. Change-Id: Id4eb2dcc3b44e18096c7b94efb7260e2400c596b --- tests/alloc/AllocTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index 123f879b..2fdee3f2 100644 --- a/tests/alloc/AllocTest.cpp +++ b/tests/alloc/AllocTest.cpp @@ -309,7 +309,7 @@ static inline bool test_alloc_b_jolly(uint8_t ms_class) tfi = the_bts.tfi_find_free(GPRS_RLCMAC_UL_TBF, &trx_no, -1); OSMO_ASSERT(tfi >= 0); - ul_tbf = tbf_alloc_ul_tbf(bts, NULL, .1, ms_class, 0, false); + ul_tbf = tbf_alloc_ul_tbf(bts, NULL, -1, ms_class, 0, false); if (!ul_tbf) return false;