diff options
| author | hathach <[email protected]> | 2019-10-29 16:21:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-10-29 16:21:31 +0700 |
| commit | de333a6f1879f43fde6e17f4dc866ad2ad77dc6b (patch) | |
| tree | f692478e3bf86647393c9d9b83374b6557993d0a /src | |
| parent | 4e8c57171c7db9cf5e7110de5bf5d86bfae917cf (diff) | |
clean up warning, msp430 gcc 8.3 fixed the library lto issue
Diffstat (limited to 'src')
| -rw-r--r-- | src/tusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tusb.c b/src/tusb.c index 271b35f1e..e7f5d800d 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -71,7 +71,7 @@ char const* const tusb_strerr[TUSB_ERROR_COUNT] = { ERROR_TABLE(ERROR_STRING) }; static void dump_str_line(uint8_t const* buf, uint16_t count)
{
// each line is 16 bytes
- for(int i=0; i<count; i++)
+ for(uint16_t i=0; i<count; i++)
{
const char ch = buf[i];
tu_printf("%c", isprint(ch) ? ch : '.');
@@ -127,7 +127,7 @@ void tu_print_mem(void const *buf, uint8_t size, uint16_t count) if ( remain )
{
- for(int i=0; i< 16-remain; i++)
+ for(uint16_t i=0; i< 16-remain; i++)
{
tu_printf(" ");
for(int j=0; j<2*size; j++) tu_printf(" ");
|
