summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/CommonDataClass
diff options
context:
space:
mode:
authorPete Batard <pete@akeo.ie>2019-02-25 23:52:02 +0000
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2019-02-26 08:32:37 +0100
commit1342d7679e10b45f0702679b521513804205cdaf (patch)
treefb71ca1ac56371a78836d0e889fedac95a7e6dbe /BaseTools/Source/Python/CommonDataClass
parent9ab4ec5188824170af6b429e5a1c77a2f92fe2d2 (diff)
downloadedk2-1342d7679e10b45f0702679b521513804205cdaf.tar.gz
edk2-1342d7679e10b45f0702679b521513804205cdaf.tar.bz2
edk2-1342d7679e10b45f0702679b521513804205cdaf.zip
EmbeddedPkg/VirtualRealTimeClockLib: Fix correctness issues
LibGetTime(): - Two variables were used for the epoch, where only one should have been [*]. - Also harmonize variable name to match the one used in LibSetTime. LibSetTime(): - Address possible underflows if time is set to start of epoch. - Ensure that time being read does actually match time that was manually set (plus the time elapsed since), by subtracting number of seconds since reset. [*] This fixes a build breakage, since one of these variables was set but never used, triggering a compiler diagnostic at some optimization levels. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard <pete@akeo.ie> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass')
0 files changed, 0 insertions, 0 deletions