Using a negated unsigned value as func. arg. fails for Keil C166 compilers.

This commit is contained in:
likewise
2003-03-16 22:39:15 +00:00
parent 7ece19c474
commit 090b4087fc
3 changed files with 4 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ icmp_input(struct pbuf *p, struct netif *inp)
iphdr = p->payload;
hlen = IPH_HL(iphdr) * 4;
pbuf_header(p, -hlen);
pbuf_header(p, -((s16_t)hlen));
type = *((u8_t *)p->payload);