drh / lcc

The lcc retargetable ANSI C compiler

Home Page:https://drh.github.io/lcc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Probably wrong assert statement in gen.c

orbitcowboy opened this issue · comments

Please take a look at following assert statement from gen.c, line 827:

    assert(p && p->sclass == REGISTER && p->sclass == REGISTER && p->x.regnode);

The statement p->sclass == REGISTER appears twice, which looks like a copy&paste error to me.

Best regards and many thanks for taking a look at this issue.

Martin Ettl

Fixed. Thanks.