[FIX] Proper Endianness restoration ( [er][et] ShortIntegerArray is broken; here's fixes and tests )

ned at squeakland.org ned at squeakland.org
Sun Mar 7 23:31:12 CET 2004


Back in June 2003 I posted a set of tests for this problem.
An updated version of that suite (with additions for MatrixTransform2x3)
is enclosed.
The tests revealed that ShortIntegerArray was still broken, so I fixed
the CS by:

* moving restoreEndianness up to ShortIntegerArray
* defining bytesPerElement in ShortIntegerArray

The resultant CS passes all 25 tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitmapStreamTests.cs.gz
Type: application/octet-stream
Size: 2346 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-harvest/attachments/20040307/f8bb53cc/BitmapStreamTests.cs.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ShortQuantitiesEndian.cs.gz
Type: application/octet-stream
Size: 1567 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-harvest/attachments/20040307/f8bb53cc/ShortQuantitiesEndian.cs.obj


More information about the Squeak-harvest mailing list