The JSFX docs say:
Quote:
Note when saving the state of variables or memory, they are stored in a more compact 32 bit representation, so a slight precision loss is possible.
|
When we talk about loss of precision, the implication is that this will affect floating point numbers, not integers. At least this is how I read it, thinking "ok, I'm using integers, not float, so precision isn't relevant."
Imagine my surprise to find that deserializing an array of integers look nothing like what I'd serialized. It turns out that the most significant 8 bits is obliterated. I was already avoiding the MSB (signedness oddities) but now it looks like I must avoid the entire high 8 bits.
Is this indeed the intended design? If so, can I suggest the docs are amended to make this clearer? I bet it will save someone else a multi-hour debugging session.
Thanks!