summaryrefslogtreecommitdiff
path: root/StdLib
diff options
context:
space:
mode:
authorlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2012-06-28 00:35:53 +0000
committerlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2012-06-28 00:35:53 +0000
commit79a45605ca06542a7b2f074651619e4e8038992a (patch)
treec093897515abc5f65eb0e1c7c4b78532c1415ec0 /StdLib
parentccd2f6b0c6bade1a04bf91beea5c9bf55cb2f83a (diff)
downloadedk2-platforms-79a45605ca06542a7b2f074651619e4e8038992a.tar.xz
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
Diffstat (limited to 'StdLib')
-rw-r--r--StdLib/BsdSocketLib/ns_ntoa.c2
1 files changed, 1 insertions, 1 deletions
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++;