Commit graph

1 commit

Author SHA1 Message Date
Jack Palevich
02effee6a9 Correctly compute the type of an assignment expression.
This change enables following types of statements to work correctly:

    a = b = 3;
    if ((a = getchar()) < 0) { ... }

This fixes 2232082 acc: assignment in comparison segfaults
2009-11-09 12:52:45 +08:00