Fixed crash for dates before JD -1.5 when local format is used.

ver1_5_1
Christophe Teyssier 2008-03-08 15:19:45 +00:00
parent 957cd00244
commit 9a36f6d66f
1 changed files with 1 additions and 0 deletions

View File

@ -407,6 +407,7 @@ astro::Date::Date(double jd)
{
int64 a = (int64) floor(jd + 0.5);
wday = (a + 1) % 7;
if (wday < 0) wday += 7;
double c;
if (a < 2299161)
{