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