diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2020-01-25 05:14:13 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2020-01-29 06:17:50 +0700 |
commit | 9f62b92258941e19f1f86e9189ab6488a9c16fae (patch) | |
tree | 490444071f337bf4e0eaf3ce1efa95ac04e20ce1 /tests/alloc/AllocTest.cpp | |
parent | f6b83a24a3ef418e0f2697577030928f727a4334 (diff) |
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
Diffstat (limited to 'tests/alloc/AllocTest.cpp')
-rw-r--r-- | tests/alloc/AllocTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |