From 8aea9fa6fa8d4a477620ee702fd67360f81e4052 Mon Sep 17 00:00:00 2001 From: Jeff Garland Date: Tue, 7 Oct 2003 13:26:15 +0000 Subject: [PATCH] fixes for msvc warnings [SVN r20283] --- include/boost/date_time/gregorian/greg_month.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/date_time/gregorian/greg_month.hpp b/include/boost/date_time/gregorian/greg_month.hpp index 0a9ba52..edbf261 100644 --- a/include/boost/date_time/gregorian/greg_month.hpp +++ b/include/boost/date_time/gregorian/greg_month.hpp @@ -2,7 +2,7 @@ #define GREG_MONTH_HPP___ /* Copyright (c) 2000 CrystalClear Software, Inc. * Disclaimer & Full Copyright at end of file - * Author: Jeff Garland + * Author: Jeff Garland, Bart Garst */ #include "boost/date_time/constrained_value.hpp" @@ -48,7 +48,8 @@ namespace gregorian { public: typedef date_time::months_of_year month_enum; //! Construct a month from the months_of_year enumeration - greg_month(month_enum theMonth) : greg_month_rep(theMonth) {} + greg_month(month_enum theMonth) : + greg_month_rep(static_cast(theMonth)) {} //! Construct from a short value greg_month(unsigned short theMonth) : greg_month_rep(theMonth) {} //! Convert the value back to a short