diff options
| author | hathach <[email protected]> | 2020-03-23 23:22:52 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-03-23 23:22:52 +0700 |
| commit | bc0779de0a703c0d048a6d745343a378700d341a (patch) | |
| tree | fa9ebd00f54b4518b9878ef37aad8531aed779e8 /examples/device | |
| parent | 8a22eba7b4104e037fb10d86edfd9dd97421b156 (diff) | |
per review
- remove -Wno-error=lto-type-mismatch
- change back to unsigned int
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/net_lwip_webserver/src/usb_descriptors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/net_lwip_webserver/src/usb_descriptors.c b/examples/device/net_lwip_webserver/src/usb_descriptors.c index 93d8e1335..cdf2c0396 100644 --- a/examples/device/net_lwip_webserver/src/usb_descriptors.c +++ b/examples/device/net_lwip_webserver/src/usb_descriptors.c @@ -157,7 +157,7 @@ uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid) { (void) langid; - uint8_t chr_count = 0; + unsigned int chr_count = 0; if (STR_LANGID == index) { @@ -188,7 +188,7 @@ uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid) chr_count = strlen(str); if ( chr_count > (TU_ARRAY_SIZE(_desc_str) - 1)) chr_count = TU_ARRAY_SIZE(_desc_str) - 1; - for (uint8_t i=0; i<chr_count; i++) + for (unsigned int i=0; i<chr_count; i++) { _desc_str[1+i] = str[i]; } |
