scm: Fix bug in assq-set!

* module/mes/scm.mes (assq-set!): Bugfix.
This commit is contained in:
Jan Nieuwenhuizen 2017-04-01 07:23:10 +02:00
parent 4d933001d5
commit a8587b6453

View file

@ -98,9 +98,9 @@
(define (assq-set! alist key val)
(let ((entry (assq key alist)))
(cond (entry (set-cdr! entry val)
alist)
(#t (cons (cons key val) alist)))))
(if (not entry) (acons key val alist)
(let ((entry (set-cdr! entry val)))
alist))))
(define (assq-ref alist key)
(let ((entry (assq key alist)))