From 77561daca9136556fc3f022952ad8f0bb1007cb9 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 18 May 2015 11:07:21 -0500 Subject: [PATCH] Fix MAKE_YYYYMM macro to correctly limit the month to a somewhat less invalid range. Thanks to rick68/gmail.com for finding this. --- include/boost/predef/make.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/predef/make.h b/include/boost/predef/make.h index f8c28d1..f997a0a 100644 --- a/include/boost/predef/make.h +++ b/include/boost/predef/make.h @@ -84,6 +84,6 @@ If the day is not available, but the month is, the 1st of the month is used as t /*` `BOOST_PREDEF_MAKE_YYYY(V)` */ #define BOOST_PREDEF_MAKE_YYYY(V) BOOST_PREDEF_MAKE_DATE(V,1,1) /*` `BOOST_PREDEF_MAKE_YYYYMM(V)` */ -#define BOOST_PREDEF_MAKE_YYYYMM(V) BOOST_PREDEF_MAKE_DATE((V)/100,(V),1) +#define BOOST_PREDEF_MAKE_YYYYMM(V) BOOST_PREDEF_MAKE_DATE((V)/100,(V)%100,1) #endif