Length of unidimensional array


#1

Hello,

while I was playing with the arrays, I got this weird result

75637> (defvar a (make-array 10 :initial-element 1))
a

75619> a
#(1 1 1 1 1 1 1 1 1 1)

75619> (length a)
-10

75619>

my env uLisp 3.4 for RISC-V (Maixduino).
the array-dimensions function returns the correct size. is this expected from length?

thanks,
Fausto


#2

That’s definitely a bug. Thank you for finding it - I’ll fix it for the next release.


#3

#4

This is fixed in uLisp 3.5.