mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-04-09 15:38:59 +00:00
Workaround for an odd type inference problem associated with the IAR compiler. Patch by Vilhelm Jutvik.
This commit is contained in:
parent
ee7af77ca9
commit
8053e2c353
@ -508,7 +508,7 @@ remove_ext_hdr(void)
|
||||
if(uip_ext_len > 0) {
|
||||
PRINTF("Cutting ext-header before processing (extlen: %d, uiplen: %d)\n",
|
||||
uip_ext_len, uip_len);
|
||||
if(uip_len - UIP_IPH_LEN - uip_ext_len < 0) {
|
||||
if(uip_len < UIP_IPH_LEN + uip_ext_len) {
|
||||
PRINTF("ERROR: uip_len too short compared to ext len\n");
|
||||
uip_ext_len = 0;
|
||||
uip_len = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user