[Openmcl-devel] BUG: bad negation of arguments declared as SHORT-FLOAT
olopierpa at gmail.com
Thu Nov 17 16:37:47 UTC 2011
On Thu, Nov 17, 2011 at 17:34, Pierpaolo Bernardi <olopierpa at gmail.com> wrote:
> On Thu, Nov 17, 2011 at 17:27, Eric Marsden <eric.marsden at free.fr> wrote:
>> This is on Linux/armel (current SVN).
>> | ? (lisp-implementation-version)
>> | "Version 1.8-dev (LinuxARM32)"
>> | ? (defun foo (a)
>> | (declare (type short-float a))
>> | (- a))
>> | FOO
>> | ? (foo 0.0)
>> | 1.0
> Since you are passing an argument of the wrong type to FOO there's no
> wonder the result is meaningless.
> Or am I missing something?
Oops. Shorts and singles probably are the same in this implementation
(I cannot check now).
So I retire and disavow my comment.
More information about the Openmcl-devel