Skip to content
Commit 67c1661d authored by Nathan Olff's avatar Nathan Olff Committed by Carles Cufí
Browse files

sys: fix implicit conversion uint32 to uint8



When running clang-tidy and logging module is used through any of the
LOG_ macro, an issue was raised in Z_CBPRINTF_PACK_ARG2 macro.

A uint32_t variable was copied into a _rws_buffer array with an implicit
cast (error: implicit conversion loses integer precision: 'uint32_t'
(aka 'unsigned int') to 'uint8_t' (aka 'unsigned char')).

Here we are adding an explicit cast to get rid of the implicit
conversion error.

Signed-off-by: default avatarNathan Olff <nathan@kickmaker.net>
parent c6ad4a79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment