[Ecls-list] BUG: LDB returning incorrect results in compiled code

Eric Marsden eric.marsden at free.fr
Sun Sep 30 15:13:43 UTC 2007


Hi,

LDB returns incorrect results in compiled code when the bytespec is
more than 32 bits wide. 

,----
| CL-TEST> (ldb (byte 27 5) -1)
| 134217727
| CL-TEST> (funcall (compile nil (lambda () (ldb (byte 27 5) -1))))
| -1
`----

Tested on ECL from CVS, Linux/AMD64; bug found using Paul Dietz's
random tester. 

-- 
Eric Marsden





More information about the ecl-devel mailing list