HaxeFoundation / HaxeFoundation/haxe
Large decimal parses as Float but hexadecimal parses as Int
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
```haxe
$type(2147483648); // Float
$type(0x80000000); // Int
```
(it's the same number with only bit 31 set)
---
On second thought maybe this is fine, our decimal literals should only support the 32-bit signed integer range which goes up to 2147483647.
Contributor guide
Research direction
The issue names no file, test, or compiler entry point. Reproduce the Haxe examples and determine whether decimal and hexadecimal literals should follow the same range rules; the work is done when the expected behavior is decided and consistently verified.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100