Use "long long" for 32-bit systems.

This commit is contained in:
Dianne Skoll
2023-10-08 11:34:10 -04:00
parent d5a4b0d235
commit af9dcec3e9

View File

@@ -3758,9 +3758,9 @@ solstice_equinox_for_year(int y, int which)
}
j -= 2447892.50000; /* This is the Julian date of midnight, 1 Jan 1990 UTC */
int dse = (int) j;
long long dse = (long) j;
int min = floor((j - (double) dse) * MINUTES_PER_DAY);
long long min = (long long) floor((j - (double) dse) * MINUTES_PER_DAY);
int ret;
/* Convert from UTC to local time */