slap self

This commit is contained in:
hap 2015-09-20 17:57:32 +02:00
parent 377168c4b4
commit 69a68c3ca9

View File

@ -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;