Skip to content

[cppia] Wrong parentheses priority for Int32  #1257

@flashultra

Description

@flashultra

The following code

var x:Int32 = 1290555;
var d:Int = -13;
x = x * (2 - (d * x));
trace("x: "+x);

will return -2147483648 (for cppia target). The correct result should be 991146299

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions