[Openmcl-devel] Another linux86-32: signed doubleword parameters.

R. Matthew Emerson rme at clozure.com
Sat Oct 11 13:59:07 PDT 2008


On Oct 11, 2008, at 2:54 PM, David Brown wrote:

> Welcome to Clozure Common Lisp Version 1.3-dev-r11046M-trunk  
> (LinuxX8632)!
>
> (defvar *msg*
>  (map '(simple-array (unsigned-byte 8))
>       #'char-code
>       (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  
>> 64).
>> While executing: BROKEN, in process listener(1).

I think this should be fixed in the trunk now.




More information about the Openmcl-devel mailing list