mirror of https://github.com/libsdl-org/SDL.git
Fix SDL_GetDaysInMonth() num days in january
This commit is contained in:
parent
b9d3d746a0
commit
dec872bdd9
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue