HaxeFoundation / HaxeFoundation/haxe

[JS] UInt inconsistent result across targets

Open
#10,913 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

The following code will produce ```-1073202714836107800``` in JS target , but ```573931030``` in other ones
```haxe
var m:UInt = 0xc6a4a793;
var h:UInt = 1115261778;
h = h*m;
trace("h: "+h);
```
https://try.haxe.org/#8C3Cb55F

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the code from the issue in the linked try.haxe.org example, comparing the JS target with the other targets. Trace the UInt multiplication and result formatting to determine where the targets diverge; done means the example produces consistent results across targets.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.