mirror of https://github.com/acidanthera/audk.git
For pass all compilers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9015 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2ba53a4f23
commit
558bfebb99
|
@ -830,8 +830,20 @@ DayValid (
|
|||
IN EFI_TIME *Time
|
||||
)
|
||||
{
|
||||
INTN DayOfMonth[12];
|
||||
|
||||
INTN DayOfMonth[12] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
|
||||
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;
|
||||
|
||||
//
|
||||
// The validity of Time->Month field should be checked before
|
||||
|
@ -980,9 +992,22 @@ IsWithinOneDay (
|
|||
IN EFI_TIME *To
|
||||
)
|
||||
{
|
||||
UINT8 DayOfMonth[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
|
||||
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;
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue