mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-03 21:32:08 +00:00
PPP: fixed 2 warnings found by MSVC
This commit is contained in:
parent
8d916b8573
commit
9a10afbbc6
@ -43,6 +43,8 @@
|
||||
|
||||
#include "netif/ppp/polarssl/md5.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* 32-bit integer manipulation macros (little endian)
|
||||
*/
|
||||
|
@ -210,7 +210,7 @@ int ppp_vslprintf(char *buf, int buflen, const char *fmt, va_list args) {
|
||||
val = va_arg(args, long);
|
||||
if ((long)val < 0) {
|
||||
neg = 1;
|
||||
val = (unsigned long)-val;
|
||||
val = (unsigned long)-(long)val;
|
||||
}
|
||||
base = 10;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user