Skip to content

[Python] failing polygonal test. #2952

Closed
@frabbit

Description

Python compares ints between 0 and 256 with "is" instead of "==", this causes a problem with the polygonal lib where at runtime 0.0 is compared against 0. The problematic function is Random.rand() in polygonal-core and looks like this:

inline public static function rand():Int
{
    return cast (frand() * Limits.INT32_MAX);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions