does anyone actually tested FFI under 64bits?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

does anyone actually tested FFI under 64bits?

EstebanLM
 
Hi,

I’m asking because, for example:

ExternalType long byteSize “4”.

and of course, nothing works using structures :)

cheers,
Esteban
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: does anyone actually tested FFI under 64bits?

EstebanLM
 
also this:

unsignedLongAt: byteOffset put: value
        "Store a 32bit signed integer starting at the given byte offset"
        ^self integerAt: byteOffset put: value size: 4 signed: false

I guess should be rewritten as:

unsignedLongAt: byteOffset put: value
        "Store a 32bit/64bits signed integer starting at the given byte offset"
        ^self integerAt: byteOffset put: value size: ExternalType long byteSize signed: false

(once sizes are fixed)

Esteban

> On 9 Jan 2017, at 16:20, Esteban Lorenzano <[hidden email]> wrote:
>
> Hi,
>
> I’m asking because, for example:
>
> ExternalType long byteSize “4”.
>
> and of course, nothing works using structures :)
>
> cheers,
> Esteban

Loading...