From 3b778e1a45ddab331a6e55804bc9687a2cdb1e8b Mon Sep 17 00:00:00 2001 From: Jeff Garland Date: Sat, 19 Jul 2003 21:34:06 +0000 Subject: [PATCH] add static cast to quiet Borland compiler warning [SVN r19224] --- include/boost/date_time/gregorian/greg_date.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/date_time/gregorian/greg_date.hpp b/include/boost/date_time/gregorian/greg_date.hpp index e23609f..f0ed7fc 100644 --- a/include/boost/date_time/gregorian/greg_date.hpp +++ b/include/boost/date_time/gregorian/greg_date.hpp @@ -74,7 +74,8 @@ namespace gregorian { day_of_year_type day_of_year() const { date start_of_year(year(), 1, 1); - return ((*this-start_of_year).days() + 1); + unsigned short doy = static_cast((*this-start_of_year).days() + 1); + return day_of_year_type(doy); } //!Return the Modified Julian Day number for the date. long modjulian_day() const