summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraham sanderson <[email protected]>2022-06-29 07:28:35 +0100
committergraham sanderson <[email protected]>2022-06-29 07:28:35 +0100
commitb12863d27ca528c6d9545f98d9664d2a342fc4d6 (patch)
tree4928d6216a6ab2878c923e83e30c2e0ea4e42ad1
parent3681ad2941c0da0cd03d0c36860622dc441457d3 (diff)
Fix actual compiler warning on gcc 10.3.1
-rw-r--r--src/tusb.c2
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 )
{