HaxeFoundation / HaxeFoundation/haxe

`-D analyzer-optimize` leads to negative UInt on hashlink

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

Description

Observed only on hashlink with `analyzer-optimize`.

Even though the type is correctly inferred, UInt variables behave as a regular signed Integers.
Explicitly casting to UInt is the only way I found to retrieve the expected value

Example : https://try.haxe.org/#20F95738

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.