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
Regardless of whether the NSNumber has been created a signed or unsigned variant of numberWith(sign)(size), it'll be JSON-serialized as an unsigned number. This is a problem, because negative numbers can be equal to positive numbers mostly only in C-family languages, and JSON interops with much higher-level languages.
The text was updated successfully, but these errors were encountered:
Per https://github.com/gnustep/libs-base/blob/master/Source/NSJSONSerialization.m#L944:
Regardless of whether the
NSNumber
has been created a signed or unsigned variant ofnumberWith(sign)(size)
, it'll be JSON-serialized as an unsigned number. This is a problem, because negative numbers can be equal to positive numbers mostly only in C-family languages, and JSON interops with much higher-level languages.The text was updated successfully, but these errors were encountered: