mirror of
https://github.com/boostorg/date_time.git
synced 2026-02-23 15:42:20 +00:00
add static cast to quiet Borland compiler warning
[SVN r19224]
This commit is contained in:
@@ -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<unsigned short>((*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
|
||||
|
||||
Reference in New Issue
Block a user