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
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ remove_ext_hdr(void)
|
||||||
if(uip_ext_len > 0) {
|
if(uip_ext_len > 0) {
|
||||||
PRINTF("Cutting ext-header before processing (extlen: %d, uiplen: %d)\n",
|
PRINTF("Cutting ext-header before processing (extlen: %d, uiplen: %d)\n",
|
||||||
uip_ext_len, uip_len);
|
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");
|
PRINTF("ERROR: uip_len too short compared to ext len\n");
|
||||||
uip_ext_len = 0;
|
uip_ext_len = 0;
|
||||||
uip_len = 0;
|
uip_len = 0;
|
||||||
|
|
Loading…
Reference in a new issue