mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
division.
This commit is contained in:
1 parent
16a22c3851
commit
b2e9294fb9
2 files changed
+9
-1
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
|
||||
division.
|
||||
|
||||
2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
|
||||
|
||||
@@ -36,7 +36,10 @@ grub_get_weekday (struct grub_datetime *datetime)
|
||||
{
|
||||
unsigned a, y, m;
|
||||
|
||||
a = (14 - datetime->month) / 12;
|
||||
if (datetime->month <= 2)
|
||||
a = 1;
|
||||
else
|
||||
a = 0;
|
||||
y = datetime->year - a;
|
||||
m = datetime->month + 12 * a - 2;
|
||||
|
||||
|
||||
Reference in new issue
Block a user