[Openmcl-devel] Another linux86-32: signed doubleword parameters.
R. Matthew Emerson
rme at clozure.com
Sat Oct 11 16:59:07 EDT 2008
On Oct 11, 2008, at 2:54 PM, David Brown wrote:
> Welcome to Clozure Common Lisp Version 1.3-dev-r11046M-trunk
> (defvar *msg*
> (map '(simple-array (unsigned-byte 8))
> (concatenate 'string "Parameter: %lld"
> (string #\Newline)
> (string #\Null))))
> (defun broken (value)
> (ccl:with-pointer-to-ivector (msg-pointer *msg*)
> (ccl:external-call "printf"
> :address msg-pointer
> :signed-doubleword value)))
> ;;; This does not.
> ? (broken #x40000000)
>> Error: value 1073741824 is not of the expected type (UNSIGNED-BYTE
>> While executing: BROKEN, in process listener(1).
I think this should be fixed in the trunk now.
More information about the Openmcl-devel