mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Added test18 on cyclic equality
This commit is contained in:
parent
026158923f
commit
6f9d0850c7
3 changed files with 99 additions and 2 deletions
|
|
@ -194,9 +194,9 @@ extern int LcompareTags (void *p, void *q) {
|
|||
if (TAG(pd->tag) == SEXP_TAG && TAG(qd->tag) == SEXP_TAG) {
|
||||
return
|
||||
#ifndef DEBUG_PRINT
|
||||
(TO_SEXP(p)->tag) - (TO_SEXP(q)->tag);
|
||||
BOX((TO_SEXP(p)->tag) - (TO_SEXP(q)->tag));
|
||||
#else
|
||||
(GET_SEXP_TAG(TO_SEXP(p)->tag)) - (GET_SEXP_TAG(TO_SEXP(p)->tag));
|
||||
BOX((GET_SEXP_TAG(TO_SEXP(p)->tag)) - (GET_SEXP_TAG(TO_SEXP(p)->tag)));
|
||||
#endif
|
||||
}
|
||||
else failure ("not a sexpr in compareTags: %d, %d\n", TAG(pd->tag), TAG(qd->tag));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue