Skip to content

Doesn't properly handle a single negative number as the input in evaluation.c #174

@vkcku

Description

@vkcku

In the resulting evaluation.c of Chapter 7, the input of -5 would be evaluated to 5 instead of the expected -5. This is because the op is only evaluated within the while loop but in cases where there are no expr children, the loop is never entered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions