abcl icon indicating copy to clipboard operation
abcl copied to clipboard

Initial array contents aren't checked when setting specialized integer arrays

Open Ferada opened this issue 6 years ago • 0 comments

Similar to https://abcl.org/trac/ticket/297 the element type is a bit confused when using :INITIAL-CONTENTS:

CL-USER(18): (make-array 10 :element-type '(unsigned-byte 16) :initial-contents #(-1 1 2 3 4 5 6 7 8 9))
#(-1 1 2 3 4 5 6 7 8 9) ;; expected error instead
CL-USER(19): (make-array 10 :element-type '(unsigned-byte 8) :initial-contents #(-1 1 2 3 4 5 6 7 8 9))
#(255 1 2 3 4 5 6 7 8 9) ;; expected error instead

Ferada avatar Oct 14 '19 19:10 Ferada