commit | 30f88f02c57beea611b8a2a47a3844fa4d5b590a | [log] [tgz] |
---|---|---|
author | Lei YU <yulei.sh@bytedance.com> | Fri Feb 11 17:40:39 2022 +0800 |
committer | Lei YU <yulei.sh@bytedance.com> | Mon Feb 14 13:38:05 2022 +0800 |
tree | 56e84eee70415fb0e233a7b1c385c3168f44d06e | |
parent | 4cc61e0e99c9014d2e8d8b25ec52b71c3c4e405b [diff] |
ipmid: message: pack: Fix cast issue clang-tidy finds an issue related to below line: uint64_t bits = t; where if t is something like unit24_t, it gets compile error: /usr/local/include/ipmid/message/pack.hpp:141:18: error: no viable conversion from 'const fixed_uint_t<24U>' (aka 'const number<boost::multiprecision::cpp_int_backend<24U, 24U, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void>>') to 'uint64_t' (aka 'unsigned long') [clang-diagnostic-error] Fix it by using static_cast. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I8cda6ec7dc48cab0da38cd1c587eb2da2121d287
To build this package, do the following steps:
1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make
To clean the repository run ./bootstrap.sh clean
.