mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Make the sun functions return E_SWERR if BASE != 1990.
All checks were successful
Remind unit tests / tests (push) Successful in 44s
All checks were successful
Remind unit tests / tests (push) Successful in 44s
This commit is contained in:
@@ -2839,6 +2839,10 @@ static int FSun(int rise, func_info *info)
|
||||
double cosz = 0.0;
|
||||
int r;
|
||||
|
||||
/* Sun calculations assume BASE is 1990 */
|
||||
if (BASE != 1990) {
|
||||
return E_SWERR;
|
||||
}
|
||||
if (rise == 0 || rise == 1) {
|
||||
/* Sunrise and sunset : cos(90 degrees + 50 arcminutes) */
|
||||
cosz = -0.01454389765158243;
|
||||
|
||||
Reference in New Issue
Block a user