mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Related to patch #9471: pbuf: Drop casting to u8_t for increment the reference count
Cast to correct type: Needed to avoid warnings about integer cast (-Wconversion) SYS_ARCH_SET cannot be used here
This commit is contained in:
parent
4a9e845a53
commit
08ec234127
@ -821,7 +821,7 @@ pbuf_ref(struct pbuf *p)
|
|||||||
{
|
{
|
||||||
/* pbuf given? */
|
/* pbuf given? */
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
SYS_ARCH_SET(p->ref, (u8_t)(p->ref + 1));
|
SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1));
|
||||||
LWIP_ASSERT("pbuf ref overflow", p->ref > 0);
|
LWIP_ASSERT("pbuf ref overflow", p->ref > 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user