Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
5.0.0a19
Issue ID
627427
Regression
No
Implicit byte to int conversion doesn't work as expected in webGl
For example:
byte c1 = 1;
int c3 = c1 << 8, // c3 = 256 in Editor, but is 0 in WebGL build
int c4 = 1 << 8; // c4 = 256 both in Editor and WebGL
Mono 2.10 and 3.4 return 256 in both cases.
Only happens with logical operators, int a = byte(255) + 1; seems to work fine.
To reproduce:
1. Attach the attached 'Uint2Test.cs'
2. Build to webGL & play compare the output in editor and browser.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Warning 'Unable to find player assmebly' is thrown when building some Project Templates
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
Add comment