There has been a change in how the constant values needs to be declared 
(because in a 64bit environment, you cannot “guess” the type by its value: 42 
can be (int32)42 or (int64)42. 
Hence, you need to be explicit on the time. 

That’s why @tbrunz suggestion is accurate. 

Now, I remember writing that example years ago, but I do not remember where :P
Can you point me to the source, so I can correct it ? (it should have been done 
before, but better later than never ;) 

Esteban

> On 1 Apr 2020, at 06:57, tbrunz <wild.id...@gmail.com> wrote:
> 
> Try using this expression:
> 
> ^ self ffiCall: #( int abs ( int TheAnswer ) ) module: LibC
> 
> i.e., add 'int' to tell Pharo that 'TheAnswer' is to be interpreted as a C
> integer.
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 


Reply via email to