mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 14:21:10 +02:00
(q-pop!): Should be "null?" not "not" for end-of-list.
Reported by Richard Todd.
This commit is contained in:
parent
aacff585bc
commit
b41478a13d
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
;;;; q.scm --- Queues
|
||||
;;;;
|
||||
;;;; Copyright (C) 1995, 2001 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 1995, 2001, 2004 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -136,7 +136,7 @@
|
|||
(q-empty-check q)
|
||||
(let ((it (caar q))
|
||||
(next (cdar q)))
|
||||
(if (not next)
|
||||
(if (null? next)
|
||||
(set-cdr! q #f))
|
||||
(set-car! q next)
|
||||
it))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue