X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=StdLib%2FBsdSocketLib%2Finet_net_ntop.c;h=e7411434f92ac4aed1109166895cebb7ddc121d7;hb=6f6bf5c77214ae2449bffbe36c33faeca4663e01;hp=3925727878f2f57463a2608a7bbe1a9ddde05615;hpb=d7ce700605e1af0e455e31ec11f19ff21d26b525;p=mirror_edk2.git diff --git a/StdLib/BsdSocketLib/inet_net_ntop.c b/StdLib/BsdSocketLib/inet_net_ntop.c index 3925727878..e7411434f9 100644 --- a/StdLib/BsdSocketLib/inet_net_ntop.c +++ b/StdLib/BsdSocketLib/inet_net_ntop.c @@ -126,7 +126,7 @@ inet_net_ntop_ipv4( if (dst != odst) *dst++ = '.'; m = ((1 << b) - 1) << (8 - b); - dst += SPRINTF((dst, "%u", *src & m)); + dst += SPRINTF((dst, "%u", ((unsigned int)(*src & m)))); size -= (size_t)(dst - t); }