mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 00:59:55 +00:00
* grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
This commit is contained in:
1 parent
5620eb5332
commit
800f63d38f
2 files changed
+5
-1
No files matched your search
@@ -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):
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user