mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-30 12:32:37 +00:00
Fixed constant not being 32 bit.
This commit is contained in:
parent
fb7d3a159a
commit
fee0c6afe9
@ -233,6 +233,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2011-02-17: Simon Goldschmidt
|
||||||
|
* ipaddr.c: Fixed constant not being 32 bit.
|
||||||
|
|
||||||
2011-01-24: Simon Goldschmidt
|
2011-01-24: Simon Goldschmidt
|
||||||
* sockets.c: Fixed bug #31741: lwip_select seems to have threading problems
|
* sockets.c: Fixed bug #31741: lwip_select seems to have threading problems
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ ip4_addr_netmask_valid(u32_t netmask)
|
|||||||
u32_t nm_hostorder = lwip_htonl(netmask);
|
u32_t nm_hostorder = lwip_htonl(netmask);
|
||||||
|
|
||||||
/* first, check for the first zero */
|
/* first, check for the first zero */
|
||||||
for (mask = 1U << 31 ; mask != 0; mask >>= 1) {
|
for (mask = 1UL << 31 ; mask != 0; mask >>= 1) {
|
||||||
if ((nm_hostorder & mask) == 0) {
|
if ((nm_hostorder & mask) == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user