* grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling

of first three years after start of validity of unixtime.
This commit is contained in:
Vladimir Serbinenko 2013-10-26 02:47:40 +02:00
parent b1c6d03760
commit 10bafa1c38
3 changed files with 35 additions and 23 deletions

View file

@ -129,6 +129,8 @@ typedef grub_int32_t grub_ssize_t;
#define GRUB_SHRT_MAX 0x7fff
#define GRUB_UINT_MAX 4294967295U
#define GRUB_INT_MAX 0x7fffffff
#define GRUB_INT32_MIN (-2147483647 - 1)
#define GRUB_INT32_MAX 2147483647
#if GRUB_CPU_SIZEOF_LONG == 8
# define GRUB_ULONG_MAX 18446744073709551615UL