From c84f4b2c42fd355ba450f4b7f5bafb1526feb5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 9 Sep 2012 22:42:26 +0200 Subject: [PATCH] Calendar.Event.Solar: Fix previous(). --- lib/modules/Calendar.pmod/Event.pmod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/Calendar.pmod/Event.pmod b/lib/modules/Calendar.pmod/Event.pmod index cb0ff45659..9cbd599a06 100644 --- a/lib/modules/Calendar.pmod/Event.pmod +++ b/lib/modules/Calendar.pmod/Event.pmod @@ -1113,7 +1113,7 @@ class Solar(int|void event_type) if ((direction > 0) && (new_jd < jd)) { [new_jd, offset] = solar_event(y + 1); } else if ((direction < 0) && (new_jd >= jd)) { - [int new_jd, offset] = solar_event(y - 1); + [new_jd, offset] = solar_event(y - 1); } // Convert into an UTC timestamp. -- GitLab