Move tm_year to unsigned (#4811)

Fixes 4627
This commit is contained in:
3djc
2017-04-17 10:03:45 +02:00
committed by Bertrand Songis
parent c6148c109c
commit 13e6ae1d08
+1 -1
View File
@@ -39,7 +39,7 @@ struct gtm
int8_t tm_hour; /* Hours. [0-23] */ int8_t tm_hour; /* Hours. [0-23] */
int8_t tm_mday; /* Day. [1-31] */ int8_t tm_mday; /* Day. [1-31] */
int8_t tm_mon; /* Month. [0-11] */ int8_t tm_mon; /* Month. [0-11] */
int8_t tm_year; /* Year - 1900. Limited to the year 2115. Oh no! :P */ uint8_t tm_year; /* Year - 1900. Limited to the year 2155. */
int8_t tm_wday; /* Day of week. [0-6] */ int8_t tm_wday; /* Day of week. [0-6] */
int16_t tm_yday; /* Day of year. [0-365] Needed internally for calculations */ int16_t tm_yday; /* Day of year. [0-365] Needed internally for calculations */
}; };