fixed missing casts found with msvc /Wall

This commit is contained in:
goldsimon
2015-04-22 13:38:10 +02:00
parent 5410838793
commit f468c492b9
3 changed files with 3 additions and 3 deletions

View File

@@ -866,7 +866,7 @@ err_t ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_add
chk_sum = (chk_sum >> 16) + (chk_sum & 0xFFFF);
chk_sum = (chk_sum >> 16) + chk_sum;
chk_sum = ~chk_sum;
iphdr->_chksum = chk_sum; /* network order */
iphdr->_chksum = (u16_t)chk_sum; /* network order */
#else /* CHECKSUM_GEN_IP_INLINE */
IPH_CHKSUM_SET(iphdr, 0);
#if CHECKSUM_GEN_IP