Search Issue Tracker
By Design
Votes
0
Found in
2017.1.0f3
Issue ID
1037399
Regression
No
Integers near their max value become negative when used in [Range (0, int.MaxValue) ]
How to reproduce:
1. Open attached project "MaxValueBug.zip" and scene "SampleScene"
2. In Hierarchy window, select "Main Camera" object
3. In Inspector window, "New Behaviour Script (Script)" component, use slider to change value to the maximum
Expected result: the slider value increases to a positive number
Actual result: the slider value increases to a negative number
Reproducible with: 2017.1.4f1, 2017.2.3f1, 2017.4.3f1, 2018.1.2f1, 2018.1.2f1
Note: the highest integer number that can be used in [Range()] which still works and remains positive is 2147483583
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- WebGL build dependencies are not refreshed until the Editor is restarted
- “Audio Random Container” allows adding unlimited number in “Audio Clips” numeric field, causing Editor to freeze
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
- [Windows] Special characters in file names are sorted to the end of the alphabet in the Project window
- Information box icons are not contained within the information box bounds in Render Pipeline Converter window
Add comment