You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug in detail:
Doing a range comparison (such as less-than-or-equal) for an enum value without explicit int casting incorrectly compiles to the SystemInt32.__op_Inequality__SystemInt32_SystemInt32__SystemBoolean extern.
Provide steps/code to reproduce the bug:
Create a C# script with the following code and the examine the compiled UASM:
Expected behavior:
Enums are always treated as ints within udon, so the comparison should match the respective comparison extern, such as SystemInt32.__op_LessThanOrEqual__SystemInt32_SystemInt32__SystemBoolean
The text was updated successfully, but these errors were encountered:
techanon
changed the title
[Bug - 1.1.1] Using range comparison on enum compiles into wrong extern
[1.1.1] Using range comparison on enum compiles into wrong extern
Sep 25, 2022
Describe the bug in detail:
Doing a range comparison (such as less-than-or-equal) for an enum value without explicit int casting incorrectly compiles to the
SystemInt32.__op_Inequality__SystemInt32_SystemInt32__SystemBoolean
extern.Provide steps/code to reproduce the bug:
Create a C# script with the following code and the examine the compiled UASM:
Outputs:
Expected behavior:
Enums are always treated as ints within udon, so the comparison should match the respective comparison extern, such as
SystemInt32.__op_LessThanOrEqual__SystemInt32_SystemInt32__SystemBoolean
The text was updated successfully, but these errors were encountered: