Fix SDL_GetDaysInMonth() num days in january

This commit is contained in:
Petar Popovic
2024-05-01 02:42:21 +02:00
committed by Sam Lantinga
parent b9d3d746a0
commit dec872bdd9

View File

@@ -90,7 +90,7 @@ void SDL_QuitTime()
int SDL_GetDaysInMonth(int year, int month) int SDL_GetDaysInMonth(int year, int month)
{ {
static const int DAYS_IN_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) { if (month < 1 || month > 12) {