From ee17f9c1da84b79f1bae9ad388bd955f88dbe6f2 Mon Sep 17 00:00:00 2001 From: lhauch Date: Wed, 12 Mar 2008 00:02:29 +0000 Subject: [PATCH] Added the ULL to the 0xFFFFFFFFFFFFFFFF values git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4841 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | 4 ++-- MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c index adeada2b29..730f51d435 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c @@ -859,10 +859,10 @@ IfrFind ( Result->Type = EFI_IFR_TYPE_NUM_SIZE_64; if (Base >= StrLen (String[1])) { - Result->Value.u64 = 0xFFFFFFFFFFFFFFFF; + Result->Value.u64 = 0xFFFFFFFFFFFFFFFFULL; } else { StringPtr = StrStr (String[1] + Base, String[0]); - Result->Value.u64 = (StringPtr == NULL) ? 0xFFFFFFFFFFFFFFFF : (StringPtr - String[1]); + Result->Value.u64 = (StringPtr == NULL) ? 0xFFFFFFFFFFFFFFFFULL : (StringPtr - String[1]); } Done: diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index 093ceff100..ed16d7b032 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c @@ -909,7 +909,7 @@ ParseOpCodes ( case EFI_IFR_ONES_OP: Value->Type = EFI_IFR_TYPE_NUM_SIZE_64; - Value->Value.u64 = 0xffffffffffffffff; + Value->Value.u64 = 0xffffffffffffffffULL; break; case EFI_IFR_UINT8_OP: