From 79a45605ca06542a7b2f074651619e4e8038992a Mon Sep 17 00:00:00 2001 From: lpleahy Date: Thu, 28 Jun 2012 00:35:53 +0000 Subject: [PATCH] Try to fix the error detected by the 64-bit GCC compiler. Signed-off-by: lpleahy git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13478 6f19259b-4bc3-4df7-8a09-765794883524 --- StdLib/BsdSocketLib/ns_ntoa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StdLib/BsdSocketLib/ns_ntoa.c b/StdLib/BsdSocketLib/ns_ntoa.c index d079dc8669..5195d4ec94 100644 --- a/StdLib/BsdSocketLib/ns_ntoa.c +++ b/StdLib/BsdSocketLib/ns_ntoa.c @@ -55,7 +55,7 @@ ns_ntoa( u_char *uplim = up + 6; net.net_e = addr.x_net; - sprintf(obuf, "%Lx", (u_long)ntohl(net.long_e)); + sprintf(obuf, "%x", (UINT32)ntohl(net.long_e)); cp = spectHex(obuf); cp2 = cp + 1; while (*up==0 && up < uplim) up++;