Fix bug in __DOSTIME__ macro

This commit is contained in:
Henry Gabryjelski 2019-08-14 12:32:36 -07:00 committed by GitHub
parent d78322519a
commit 04290e7bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,10 +43,10 @@ SOFTWARE.
: (__DATE__ [2u] == 'y' ) ? 5u /*May*/ \ : (__DATE__ [2u] == 'y' ) ? 5u /*May*/ \
: (__DATE__ [2u] == 'n' ) ? 6u /*Jun*/ \ : (__DATE__ [2u] == 'n' ) ? 6u /*Jun*/ \
: (__DATE__ [2u] == 'l' ) ? 7u /*Jul*/ \ : (__DATE__ [2u] == 'l' ) ? 7u /*Jul*/ \
: (__DATE__ [2u] == 'g' ) ? 8u /*Jul*/ \ : (__DATE__ [2u] == 'g' ) ? 8u /*Aug*/ \
: (__DATE__ [2u] == 'p' ) ? 9u /*Jul*/ \ : (__DATE__ [2u] == 'p' ) ? 9u /*Sep*/ \
: (__DATE__ [2u] == 't' ) ? 10u /*Jul*/ \ : (__DATE__ [2u] == 't' ) ? 10u /*Oct*/ \
: (__DATE__ [2u] == 'v' ) ? 11u /*Jul*/ \ : (__DATE__ [2u] == 'v' ) ? 11u /*Nov*/ \
: 12u /*Dec*/ ) : 12u /*Dec*/ )
#define __DAY_INT__ ( \ #define __DAY_INT__ ( \
@ -75,8 +75,8 @@ SOFTWARE.
#define __DOSTIME__ ( \ #define __DOSTIME__ ( \
( __HOUR_INT__ << 11u) | \ ( __HOUR_INT__ << 11u) | \
( __MONTH_INT__ << 5u) | \ ( __MINUTE_INT__ << 5u) | \
( __DAY_INT__ << 0u) ) ( __SECONDS_INT__ << 0u) )
#endif // COMPILE_DATE_H #endif // COMPILE_DATE_H