Skip to content

Commit

Permalink
Fix SDL_GetDaysInMonth() num days in january
Browse files Browse the repository at this point in the history
  • Loading branch information
Sackzement authored and slouken committed May 1, 2024
1 parent b9d3d74 commit dec872b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time/SDL_time.c
Expand Up @@ -90,7 +90,7 @@ void SDL_QuitTime()
int SDL_GetDaysInMonth(int year, int month)
{
static const int DAYS_IN_MONTH[] = {
30, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
};

if (month < 1 || month > 12) {
Expand Down

0 comments on commit dec872b

Please sign in to comment.