HaxeFoundation / HaxeFoundation/haxe

UInt compare issues

Open
#5,019 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

The following example:

``` haxe
package unit.issues;

class Issue5019 extends Test {
@:keep static inline var VALUE:UInt = 0x9747b28c;
@:keep static var VALUE2:UInt = 0x9747b28c;
function test() {
t(VALUE > 0);
t(VALUE2 == 0x9747b28c);
}
}
```

Gets passed to the generator the following way:

``` haxe
t(false);
t(VALUE2 == (0x9747b28c : Int));
```

which make both examples fail

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.