core: xassq: Prepare for M2-Planet.
* src/lib.c (xassq): Prepare for M2-Planet.
This commit is contained in:
parent
53e509ecf4
commit
9ffe861eaf
|
@ -118,10 +118,12 @@ stack_ref (SCM stack, SCM index)
|
||||||
SCM
|
SCM
|
||||||
xassq (SCM x, SCM a) /* For speed in core. */
|
xassq (SCM x, SCM a) /* For speed in core. */
|
||||||
{
|
{
|
||||||
while (a != cell_nil && x != CDAR (a))
|
while (a != cell_nil)
|
||||||
a = CDR (a);
|
{
|
||||||
if (a != cell_nil)
|
if (x == CDAR (a))
|
||||||
return CAR (a);
|
return CAR (a);
|
||||||
|
a = CDR (a);
|
||||||
|
}
|
||||||
return cell_f;
|
return cell_f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue