mirror of https://github.com/acidanthera/audk.git
Fixed one bug when runtime test. The root cause is that ICC compiler will convert one local array to one global array, and not converted from boot time to run time.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3775 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
593a8308cc
commit
1f4cf7b1ba
|
@ -1029,8 +1029,23 @@ Returns:
|
|||
|
||||
--*/
|
||||
{
|
||||
UINT8 DayOfMonth[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
|
||||
BOOLEAN Adjacent = FALSE;
|
||||
UINT8 DayOfMonth[12];
|
||||
BOOLEAN Adjacent;
|
||||
|
||||
DayOfMonth[0] = 31;
|
||||
DayOfMonth[1] = 29;
|
||||
DayOfMonth[2] = 31;
|
||||
DayOfMonth[3] = 30;
|
||||
DayOfMonth[4] = 31;
|
||||
DayOfMonth[5] = 30;
|
||||
DayOfMonth[6] = 31;
|
||||
DayOfMonth[7] = 31;
|
||||
DayOfMonth[8] = 30;
|
||||
DayOfMonth[9] = 31;
|
||||
DayOfMonth[10] = 30;
|
||||
DayOfMonth[11] = 31;
|
||||
|
||||
Adjacent = FALSE;
|
||||
|
||||
if (From->Year == To->Year) {
|
||||
if (From->Month == To->Month) {
|
||||
|
|
Loading…
Reference in New Issue