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
Hi,
I've attached a patch that fixes a problem with negative integer NSNumbers
(there already was a remark in the code). In Java, all int and long values are
signed. Therefore, the simple test, e.g. "<256" for a 1-byte-representation is
not sufficient. Instead, all negative values have to be stored in 8 bytes since
the most significant bit (the sign) is is set.
Similarily, BinaryPropertyListWriter.writeIntHeader(int) can not handle
negative values. Instead of correcting this, I've only added an assertion. This
is because any use of that method only deals with sizes of objects, which are
>= 0 by nature.
Please consider to apply this patch.
Have fun!
PS: Small copy-and-paste-bug on the example Wiki page: When adding "Lisa", you
should consistently use "person2"...
Original issue reported on code.google.com by volker.r...@gmail.com on 18 Aug 2011 at 12:48
Original issue reported on code.google.com by
volker.r...@gmail.com
on 18 Aug 2011 at 12:48Attachments:
The text was updated successfully, but these errors were encountered: