summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-24 07:50:36 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-24 07:50:36 +0000
commit9260b9151b0f6c08727dcccc03c1ce58d1d623fd (patch)
tree4b35bfe3918d12be0fd905b11e1a927ce08c8d49 /IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
parentbd828c8e83405a8381fd1e0d6ca317cf65e483db (diff)
downloadedk2-platforms-9260b9151b0f6c08727dcccc03c1ce58d1d623fd.tar.xz
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
Diffstat (limited to 'IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c')
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c2
1 files changed, 1 insertions, 1 deletions
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;
}