mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
slap self
This commit is contained in:
parent
377168c4b4
commit
69a68c3ca9
@ -9,6 +9,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "coreutil.h"
|
||||
#include <assert.h>
|
||||
#include <zlib.h>
|
||||
|
||||
|
||||
@ -82,7 +83,7 @@ int gregorian_is_leap_year(int year)
|
||||
|
||||
int gregorian_days_in_month(int month, int year)
|
||||
{
|
||||
assert(month >= 1 && month <= 12)
|
||||
assert(month >= 1 && month <= 12);
|
||||
|
||||
int days[] = { 31,28,31,30,31,30,31,31,30,31,30,31 };
|
||||
days[1] += gregorian_is_leap_year(year) ? 1 : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user