floatAt: on Win2K vs Linux

Bob Arning arning at charm.net
Thu Oct 5 17:20:59 UTC 2000


On Thu, 05 Oct 2000 12:33:50 -0500 jchludzinski at worldkey.net wrote:
>When I try to execute:
>
>| ba |
>ba _ ByteArraye new: 4.
>ba floatAt: 1 put: 2.3.
>
>on Win2K it works; on Linux I get a "primitive failure" for 
>floatAt:
>
>Why?

John,

If you look at ByteArray>>floatAt:put:, you will see that it requires the FFI primitives. Perhaps these are present on your Windows machine but not on your linux one.

floatAt: byteOffset put: value
	<primitive:'primitiveFFIFloatAtPut' module:'SqueakFFIPrims'>
	^self primitiveFailed

Cheers,
Bob





More information about the Squeak-dev mailing list