drh / lcc

The lcc retargetable ANSI C compiler
https://drh.github.io/lcc/
2.03k stars 441 forks source link

Probably wrong assert statement in gen.c #8

Closed orbitcowboy closed 10 years ago

orbitcowboy commented 10 years ago

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

drh commented 10 years ago

Fixed. Thanks.