mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-13 19:13:37 +08:00
Fix a few -Wconversion warnings (there are many more to do)
This commit is contained in:
@@ -715,7 +715,7 @@ netif_found:
|
||||
options_done:
|
||||
|
||||
/* p points to IPv6 header again. */
|
||||
pbuf_header_force(p, ip_data.current_ip_header_tot_len);
|
||||
pbuf_header_force(p, (s16_t)ip_data.current_ip_header_tot_len);
|
||||
|
||||
/* send to upper layers */
|
||||
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: \n"));
|
||||
|
||||
@@ -132,8 +132,8 @@ ip6addr_aton(const char *cp, ip6_addr_t *addr)
|
||||
} else if (isxdigit(*s)) {
|
||||
/* add current digit */
|
||||
current_block_value = (current_block_value << 4) +
|
||||
(isdigit(*s) ? *s - '0' :
|
||||
10 + (islower(*s) ? *s - 'a' : *s - 'A'));
|
||||
(isdigit(*s) ? (u32_t)(*s - '0') :
|
||||
(u32_t)(10 + (islower(*s) ? *s - 'a' : *s - 'A')));
|
||||
} else {
|
||||
/* unexpected digit, space? CRLF? */
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user