mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +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…
Reference in New Issue
Block a user