summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgraham sanderson <[email protected]>2024-07-17 15:46:35 -0500
committerLiam Fraser <[email protected]>2024-07-18 11:11:06 +0100
commit0d72f153cf1614aaff0b5859d00fb5c0e1711f51 (patch)
treeb719209d7f260ca7f656a3e7fff21042cc909299 /src
parent23c9353cd86bcecd9d1220bbb2277d5ffb834e7c (diff)
fix arguable bug caught as warning by LLVM embedded toolchain for ARM 14.0.0
Diffstat (limited to 'src')
-rw-r--r--src/tusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tusb.c b/src/tusb.c
index 0092267a1..860e8ac35 100644
--- a/src/tusb.c
+++ b/src/tusb.c
@@ -398,7 +398,7 @@ static void dump_str_line(uint8_t const* buf, uint16_t count) {
tu_printf(" |");
// each line is 16 bytes
for (uint16_t i = 0; i < count; i++) {
- const char ch = buf[i];
+ int ch = buf[i];
tu_printf("%c", isprint(ch) ? ch : '.');
}
tu_printf("|\r\n");