diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-16 09:55:17 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-16 09:55:17 +0000 |
commit | 16f2a7da7ab86713731b09b63292b5c6f0781c22 (patch) | |
tree | fbb06e8e68caf7d7e618234c1de9d52fe60fd917 | |
parent | 66311a7863811a96aa2573852bcb4afe48720330 (diff) | |
download | edk2-16f2a7da7ab86713731b09b63292b5c6f0781c22.zip edk2-16f2a7da7ab86713731b09b63292b5c6f0781c22.tar.gz edk2-16f2a7da7ab86713731b09b63292b5c6f0781c22.tar.bz2 |
Fix a bug in computing math expression.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UefiHiiEnable4354@4561 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/UefiSetupBrowserDxe/InputHandler.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/UefiSetupBrowserDxe/InputHandler.c b/MdeModulePkg/Universal/UefiSetupBrowserDxe/InputHandler.c index 75adcad..5257f32 100644 --- a/MdeModulePkg/Universal/UefiSetupBrowserDxe/InputHandler.c +++ b/MdeModulePkg/Universal/UefiSetupBrowserDxe/InputHandler.c @@ -636,11 +636,7 @@ EnterCarriageReturn: if (HexInput) { EditValue = LShiftU64 (EditValue, 4) + Digital; } else { - // - // EditValue = EditValue * 10 + (Key.UnicodeChar - L'0'); - // - EditValue = LShiftU64 (EditValue, 3); - EditValue += LShiftU64 (EditValue, 1) + (Key.UnicodeChar - L'0'); + EditValue = MultU64x32 (EditValue, 10) + (Key.UnicodeChar - L'0'); } } else { if (HexInput) { |