diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-24 07:50:36 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-24 07:50:36 +0000 |
commit | 9260b9151b0f6c08727dcccc03c1ce58d1d623fd (patch) | |
tree | 4b35bfe3918d12be0fd905b11e1a927ce08c8d49 | |
parent | bd828c8e83405a8381fd1e0d6ca317cf65e483db (diff) | |
download | edk2-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
-rw-r--r-- | IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c | 2 |
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;
}
|