From 9260b9151b0f6c08727dcccc03c1ce58d1d623fd Mon Sep 17 00:00:00 2001 From: klu2 Date: Wed, 24 Jun 2009 07:50:36 +0000 Subject: Use INTN to case the result of subtract git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8647 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IntelFrameworkModulePkg') diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c index b72d8102c0..c514bfaa19 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c @@ -44,7 +44,7 @@ IsNvNeed ( Ptr++; } - if ((((UINTN)Ptr - (UINTN)ConVarName) / sizeof (CHAR16)) <= 3) { + if (((INTN)((UINTN)Ptr - (UINTN)ConVarName) / sizeof (CHAR16)) <= 3) { return TRUE; } -- cgit v1.2.3