mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 15:21:43 +00:00
Fix SDL_GetDaysInMonth() num days in january
This commit is contained in:

committed by
Sam Lantinga

parent
b9d3d746a0
commit
dec872bdd9
@@ -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) {
|
||||
|
Reference in New Issue
Block a user