pif_LongInt

by Popisfizzy
Double, triple, and quadruple-precision integers, both signed and unsigned.
ID:2329482
 
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.
Popisfizzy resolved issue with message:
When using the - operator as negation, objects of the Signed32 class would produce the wrong result.