mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 21:10:27 +02:00
(add-duration): Fix bug: Call `add-duration!' w/ two args.
Thanks to Alex Shinn.
This commit is contained in:
parent
e4d1c1eabd
commit
afb47f6d45
1 changed files with 53 additions and 51 deletions
|
@ -501,7 +501,7 @@
|
|||
|
||||
(define (add-duration t duration)
|
||||
(let ((result (copy-time t)))
|
||||
(add-duration! result)))
|
||||
(add-duration! result duration)))
|
||||
|
||||
(define (subtract-duration! t duration)
|
||||
(if (not (eq? (time-type duration) time-duration))
|
||||
|
@ -1549,3 +1549,5 @@
|
|||
'string->date
|
||||
'bad-date-format-string
|
||||
(list "Incomplete date read. " newdate template-string)))))
|
||||
|
||||
;;; srfi-19.scm ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue