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
This commit is contained in:
klu2 2009-06-24 07:50:36 +00:00
parent bd828c8e83
commit 9260b9151b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}