Skip to content

Commit 39069cf

Browse files
authored
Merge pull request hathach#1538 from kilograham/another_compiler_wawrning
Fix actual compiler warning on gcc 10.3.1
2 parents 3681ad2 + b12863d commit 39069cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tusb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void tu_print_mem(void const *buf, uint32_t count, uint8_t indent)
295295

296296
// fill up last row to 16 for printing ascii
297297
const uint32_t remain = count%16;
298-
uint8_t nback = (remain ? remain : 16);
298+
uint8_t nback = (uint8_t)(remain ? remain : 16);
299299

300300
if ( remain )
301301
{

0 commit comments

Comments
 (0)