[Openmcl-devel] signedness issue in %ffcall on ppc
R. Matthew Emerson
rme at clozure.com
Fri May 8 12:49:56 PDT 2009
On May 7, 2009, at 2:07 PM, Julian Squires wrote:
> Given the following example:
> (asdf:oos 'asdf:load-op :cffi)
> (cffi:defcfun "srandom" :void (seed :unsigned-int))
> (srandom #x80000000)
(#_srandom #x80000000) also showed the same behavior.
> with Clozure Common Lisp Version 1.3-r11936 (LinuxPPC32) I receive
> the following error:
>> Error: value 2147483648 is not of the expected type (SIGNED-BYTE 32).
>> While executing: %FF-CALL, in process listener(1).
> The attached patch (to level-0/PPC/ppc-def.lisp) appears to correct
> this issue.
Thanks. This bug should be fixed in both the trunk and in the 1.3
release branch as of r12019.
More information about the Openmcl-devel