aboutsummaryrefslogtreecommitdiff
path: root/module/srfi/srfi-19/alt.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/srfi/srfi-19/alt.scm')
-rw-r--r--module/srfi/srfi-19/alt.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/srfi/srfi-19/alt.scm b/module/srfi/srfi-19/alt.scm
index 33a1bc1f..c07bcbd8 100644
--- a/module/srfi/srfi-19/alt.scm
+++ b/module/srfi/srfi-19/alt.scm
@@ -282,7 +282,7 @@
(define-values (days-fixed change*)
(let loop ((target base) (change change))
;; (format (current-error-port) "1 ~s : ~s~%" target change)
- (if (> (days-in-month target) (+ (day change) (day target)))
+ (if (>= (days-in-month target) (+ (day change) (day target)))
;; No date overflow, just add the change
(values (set-> target (day = (+ (day change))))
(set-> change (day 0)))