Skip to content

Commit 2720392

Browse files
authored
Merge pull request #2490 from IngHK/compiler_warning
fixed compiler warning src/tusb.c
2 parents f21b792 + 23450d4 commit 2720392

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
@@ -477,7 +477,7 @@ void tu_print_mem(void const *buf, uint32_t count, uint8_t indent)
477477
uint8_t const *buf8 = (uint8_t const *) buf;
478478

479479
char format[] = "%00X";
480-
format[2] += 2*size;
480+
format[2] += (uint8_t) (2*size); // 1 byte = 2 hex digits
481481

482482
const uint8_t item_per_line = 16 / size;
483483

0 commit comments

Comments
 (0)