mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 06:09:18 +02:00
sexp_release_object fix from Ben Weaver - wasn't releasing
the first object in the list.
This commit is contained in:
parent
f9c640f180
commit
855af6120b
2 changed files with 3 additions and 1 deletions
1
AUTHORS
1
AUTHORS
|
@ -11,6 +11,7 @@ Thanks to the following people for patches and bug reports:
|
|||
* Alexander Shendi
|
||||
* Andreas Rottman
|
||||
* Bakul Shah
|
||||
* Ben Weaver
|
||||
* Bruno Deferrari
|
||||
* Doug Currie
|
||||
* Derrick Eddington
|
||||
|
|
3
gc.c
3
gc.c
|
@ -85,7 +85,8 @@ void sexp_release_object(sexp ctx, sexp x) {
|
|||
ls1=ls2, ls2=sexp_cdr(ls2))
|
||||
if (sexp_car(ls2) == x) {
|
||||
if (ls1) sexp_cdr(ls1) = sexp_cdr(ls2);
|
||||
else sexp_global(ctx, SEXP_G_PRESERVATIVES) = ls2;
|
||||
else sexp_global(ctx, SEXP_G_PRESERVATIVES) = sexp_cdr(ls2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue