mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
Fix the fix for GETSHORT and GETLONG bug #19052, needs to be tested by some PPP user.
This commit is contained in:
parent
3551b2a2a1
commit
205520c620
@ -180,7 +180,7 @@ enum NPmode {
|
|||||||
|
|
||||||
|
|
||||||
#define GETSHORT(s, cp) { \
|
#define GETSHORT(s, cp) { \
|
||||||
(s) = *(cp); (cp)++; (s) << 8; \
|
(s) = *(cp); (cp)++; (s) <<= 8; \
|
||||||
(s) |= *(cp); (cp)++; \
|
(s) |= *(cp); (cp)++; \
|
||||||
}
|
}
|
||||||
#define PUTSHORT(s, cp) { \
|
#define PUTSHORT(s, cp) { \
|
||||||
@ -189,7 +189,7 @@ enum NPmode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define GETLONG(l, cp) { \
|
#define GETLONG(l, cp) { \
|
||||||
(l) = *(cp); (cp)++; (l) << 8; \
|
(l) = *(cp); (cp)++; (l) <<= 8; \
|
||||||
(l) |= *(cp); (cp)++; (l) <<= 8; \
|
(l) |= *(cp); (cp)++; (l) <<= 8; \
|
||||||
(l) |= *(cp); (cp)++; (l) <<= 8; \
|
(l) |= *(cp); (cp)++; (l) <<= 8; \
|
||||||
(l) |= *(cp); (cp)++; \
|
(l) |= *(cp); (cp)++; \
|
||||||
|
Loading…
Reference in New Issue
Block a user