mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Return an error rather than (DATETIME) -1 if soleq fails
This commit is contained in:
@@ -3808,8 +3808,10 @@ FSoleq(func_info *info)
|
||||
}
|
||||
|
||||
ret = solstice_equinox_for_year(y, which);
|
||||
if (ret < 0) return E_MKTIME_PROBLEM;
|
||||
if (dse != NO_DATE && (ret / MINUTES_PER_DAY) < dse) {
|
||||
ret = solstice_equinox_for_year(y+1, which);
|
||||
if (ret < 0) return E_MKTIME_PROBLEM;
|
||||
}
|
||||
RetVal.type = DATETIME_TYPE;
|
||||
RETVAL = ret;
|
||||
|
||||
Reference in New Issue
Block a user