When using the - operator as negation, objects of the Signed32 class will produce
|
|
Resolved
When using the - operator as negation, objects of the Signed32 class would produce the wrong result.
|
BYOND Version: | 511 |
Operating System: | Windows 10 Home 64-bit |
Web Browser: | Firefox 57.0 |
Applies to: | DM Language |
|
Status: |
Resolved (b1.2.2.20171227)
This issue has been resolved.
|
|
|
Descriptive Problem Summary:
When using the - operator as negation, objects of the Signed32 class will produce the wrong result.
Code Snippet (if applicable) to Reproduce Problem:
var/pif_LongInt/Signed32/A = new(100) world << (-A).Print()
Expected Results:
The output would be -100.
Actual Results:
The actual output is 100.
Workarounds:
Use the Negate() method instead.
|