Merge pull request #1538 from kilograham/another_compiler_wawrning

Fix actual compiler warning on gcc 10.3.1
This commit is contained in:
Ha Thach 2022-06-29 13:47:42 +07:00 committed by GitHub
commit 39069cf4be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ void tu_print_mem(void const *buf, uint32_t count, uint8_t indent)
// fill up last row to 16 for printing ascii
const uint32_t remain = count%16;
uint8_t nback = (remain ? remain : 16);
uint8_t nback = (uint8_t)(remain ? remain : 16);
if ( remain )
{