newLISP Fan Club

Forum => newLISP newS => Topic started by: IVShilov on August 11, 2018, 10:52:07 AM

Title: rotate bug on WIN7 x64
Post by: IVShilov on August 11, 2018, 10:52:07 AM
See this:
newLISP v.10.7.1 64-bit on Windows IPv4/6 UTF-8 libffi, options: newlisp -h

> (rotate (sequence 0 24) -25 ) # BUG:
(0)
> (rotate (sequence 0 24) -24 ) # all OK:
(24 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23)
> (rotate (sequence 0 24) -26 ) # all OK again:
(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 0)
> (letn (x 25) (rotate (sequence 0 x) (- (inc x)) )) # again all OK, but must be BUG:
(26 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25)
> (rotate (sequence 0 4) -5 ) # BUG:
(0)
> (rotate (sequence 0 5) -6 ) # BUG:
(0)
>
Title: Re: rotate bug on WIN7 x64
Post by: Lutz on August 11, 2018, 02:09:46 PM
Fixed here: http://www.newlisp.org/downloads/development/inprogress/



Source package and executables for macOS and Windows.