Cold case #9191 fixes for NC30 compiler for the M16 mcu, reported by Bjorn Sundman.

This commit is contained in:
christiaans
2006-10-25 07:51:17 +00:00
parent 5fcf6418cf
commit bd86f95512
2 changed files with 7 additions and 7 deletions

View File

@@ -139,7 +139,7 @@ PACK_STRUCT_END
#define IPH_LEN_SET(hdr, len) (hdr)->_len = (len)
#define IPH_ID_SET(hdr, id) (hdr)->_id = (id)
#define IPH_OFFSET_SET(hdr, off) (hdr)->_offset = (off)
#define IPH_TTL_SET(hdr, ttl) (hdr)->_ttl_proto = (htons(IPH_PROTO(hdr) | ((ttl) << 8)))
#define IPH_TTL_SET(hdr, ttl) (hdr)->_ttl_proto = (htons(IPH_PROTO(hdr) | ((u16_t)(ttl) << 8)))
#define IPH_PROTO_SET(hdr, proto) (hdr)->_ttl_proto = (htons((proto) | (IPH_TTL(hdr) << 8)))
#define IPH_CHKSUM_SET(hdr, chksum) (hdr)->_chksum = (chksum)