From e70c3793273a1d5bb8d22aa834596f44e1ca2779 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Sat, 30 Jan 2010 20:20:37 +0000 Subject: Fix VS2003 cast issue git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9875 6f19259b-4bc3-4df7-8a09-765794883524 --- EmbeddedPkg/Ebl/Network.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'EmbeddedPkg') diff --git a/EmbeddedPkg/Ebl/Network.c b/EmbeddedPkg/Ebl/Network.c index c566dda49a..edd09eccd5 100644 --- a/EmbeddedPkg/Ebl/Network.c +++ b/EmbeddedPkg/Ebl/Network.c @@ -21,13 +21,13 @@ ParseIp ( OUT EFI_IP_ADDRESS *Address ) { - Address->v4.Addr[0] = AsciiStrDecimalToUintn(String); + Address->v4.Addr[0] = (UINT8)AsciiStrDecimalToUintn (String); String = AsciiStrStr(String, ".") + 1; - Address->v4.Addr[1] = AsciiStrDecimalToUintn(String); + Address->v4.Addr[1] = (UINT8)AsciiStrDecimalToUintn (String); String = AsciiStrStr(String, ".") + 1; - Address->v4.Addr[2] = AsciiStrDecimalToUintn(String); + Address->v4.Addr[2] = (UINT8)AsciiStrDecimalToUintn (String); String = AsciiStrStr(String, ".") + 1; - Address->v4.Addr[3] = AsciiStrDecimalToUintn(String); + Address->v4.Addr[3] = (UINT8)AsciiStrDecimalToUintn (String); return EFI_SUCCESS; } -- cgit v1.2.3