PPP: fixed 2 warnings found by MSVC

This commit is contained in:
sg 2015-02-22 21:30:17 +01:00
parent 8d916b8573
commit 9a10afbbc6
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@
#include "netif/ppp/polarssl/md5.h"
#include <string.h>
/*
* 32-bit integer manipulation macros (little endian)
*/

View File

@ -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;