Bug 49493

GemStone/S 64 Bit

3.6.1, 3.6, 3.5.8, 3.5.7, 3.5.6, 3.5.5, 3.5.4, 3.5.3, 3.5.2, 3.5.1, 3.5, 3.4.5, 3.4.4, 3.4.3, 3.4.2, 3.4.1, 3.4, 3.3.9, 3.3.8, 3.3.7, 3.3.6, 3.3.x, 3.3, 3.2.17, 3.2.16, 3.2.15, 3.2.x, earlier versions

3.6.2

CByteArray >> floatAt:put: does not accept SmallFloat arguments

The method CByteArray>>floatAt:put: errors with a SmallFloat argument.

While SmallFloat is largely deprecated in favor of SmallDouble, it is still used in the FFI when interfacing to libraries that take 32-bit floating point arguments.

Workaround

Convert the argument to a SmallDouble or Float.  This can be done using asFloat (which creates an instance of SmallDouble for floating point values with the SmallDouble range)


Last updated: 4/15/22