* pbuf.c: Use s32_t in pbuf_realloc(), as an s16_t can't reliably hold

the difference between two u16_t's.
This commit is contained in:
jifl 2007-04-17 14:44:41 +00:00
parent 748ba22a19
commit cd19d81411
2 changed files with 5 additions and 1 deletions

View File

@ -117,6 +117,10 @@ HISTORY
++ Bug fixes:
2007-04-17 Jonathan Larmour
* pbuf.c: Use s32_t in pbuf_realloc(), as an s16_t can't reliably hold
the difference between two u16_t's.
2007-04-12 Jonathan Larmour
* icmp.c: Reset IP header TTL in ICMP ECHO responses (bug #19580).

View File

@ -395,7 +395,7 @@ pbuf_realloc(struct pbuf *p, u16_t new_len)
{
struct pbuf *q;
u16_t rem_len; /* remaining length */
s16_t grow;
s32_t grow;
LWIP_ASSERT("pbuf_realloc: sane p->flags", p->flags == PBUF_FLAG_POOL ||
p->flags == PBUF_FLAG_ROM ||