Search Issue Tracker

Fixed

Fixed in 1.8.8

Votes

0

Found in [Package]

1.6.4

1.7.4

1.8.4

Issue ID

BUR-2390

Regression

No

Int cast inside of a float cast is discarded when using Burst compilation

Package: Burst

-

Reproduction steps:
1. Open the "IN-42235.zip" project
2. Open "Assets/Scenes/SampleScene"
3. In the Hierarchy window, select "Bug Test" GameObject
4. In the Inspector window, click the "Bug 1" option in the Context menu of the "Bug Testing MB (Script)" Component
5. In the Menu bar, click on Jobs -> Burst -> Enable Compilation
6. Repeat steps 3-4 and observe the Console

Expected result: Both outputs are equal
Actual result: Both outputs are different

Reproducible with: 1.6.4, 1.7.4 (2021.3.26f1), 1.8.4 (2021.3.26f1, 2022.3.0f1, 2023.1.0b19, 2023.2.0a17)

Reproducible on: Windows 10

Note: If the results are equal, make sure that the Burst compilation has finished before running the test again

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.