* grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.

This commit is contained in:
Vladimir Serbinenko 2013-11-08 19:14:03 +01:00
parent 5620eb5332
commit 800f63d38f
2 changed files with 5 additions and 1 deletions

View file

@ -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>
* grub-core/gfxmenu/gui_circular_progress.c (parse_angle):

View file

@ -34,7 +34,7 @@ static const char *const grub_weekday_names[] =
int
grub_get_weekday (struct grub_datetime *datetime)
{
int a, y, m;
unsigned a, y, m;
a = (14 - datetime->month) / 12;
y = datetime->year - a;