diff options
| author | Ha Thach <[email protected]> | 2022-06-29 13:47:42 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-29 13:47:42 +0700 |
| commit | 39069cf4be84a4cd1f1a4f3435ea69e606d2b064 (patch) | |
| tree | 4928d6216a6ab2878c923e83e30c2e0ea4e42ad1 | |
| parent | 3681ad2941c0da0cd03d0c36860622dc441457d3 (diff) | |
| parent | b12863d27ca528c6d9545f98d9664d2a342fc4d6 (diff) | |
Merge pull request #1538 from kilograham/another_compiler_wawrning
Fix actual compiler warning on gcc 10.3.1
| -rw-r--r-- | src/tusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tusb.c b/src/tusb.c index 709bb7d48..c3787ff8f 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -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 ) { |
