* grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
This commit is contained in:
parent
5620eb5332
commit
800f63d38f
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
|
||||||
|
|
||||||
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
|
* grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
|
||||||
|
|
|
@ -34,7 +34,7 @@ static const char *const grub_weekday_names[] =
|
||||||
int
|
int
|
||||||
grub_get_weekday (struct grub_datetime *datetime)
|
grub_get_weekday (struct grub_datetime *datetime)
|
||||||
{
|
{
|
||||||
int a, y, m;
|
unsigned a, y, m;
|
||||||
|
|
||||||
a = (14 - datetime->month) / 12;
|
a = (14 - datetime->month) / 12;
|
||||||
y = datetime->year - a;
|
y = datetime->year - a;
|
||||||
|
|
Loading…
Reference in a new issue