[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #46595] Useless Assert
From: |
April M |
Subject: |
[lwip-devel] [bug #46595] Useless Assert |
Date: |
Thu, 03 Dec 2015 07:26:57 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?46595>
Summary: Useless Assert
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: april_m
Submitted on: Thu Dec 3 07:26:56 2015
Category: Network drivers
Severity: 3 - Normal
Item Group: Change Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: git head
_______________________________________________________
Details:
Netif.c Line 834~835 netif_poll
LWIP_ASSERT("netif->loop_cnt_current underflow",
((netif->loop_cnt_current - clen) < (netif->loop_cnt_current));
(netif->loop_cnt_current - clen) < (netif->loop_cnt_current
equals to
0 < clen
Since clen is u8_t, it will always to be true.
Why need Assert like this?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?46595>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #46595] Useless Assert,
April M <=