HaxeFoundation / HaxeFoundation/haxe

Wrong UInt max value ?

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

Description

Class UInt is available on all platforms, but if you try to assign value more than 2147483647 ( ‭7FFFFFFF‬ ) you will get the error " Float should be UInt".
Maybe max value for UInt should be 4294967295 ( ‭FFFFFFFF‬ ) or I miss something ?

Example: https://try.haxe.org/#Bd879 or https://try.haxe.org/#527b0

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.