Make inet_chksum.c compile with -Wconversion

This commit is contained in:
Dirk Ziegelmeier
2017-06-30 21:47:25 +02:00
parent 41177cfd1c
commit 94beb4eddf
2 changed files with 15 additions and 15 deletions

View File

@@ -49,7 +49,7 @@
/** Split an u32_t in two u16_ts and add them up */
#ifndef FOLD_U32T
#define FOLD_U32T(u) (((u) >> 16) + ((u) & 0x0000ffffUL))
#define FOLD_U32T(u) ((u32_t)(((u) >> 16) + ((u) & 0x0000ffffUL)))
#endif
#if LWIP_CHECKSUM_ON_COPY