[armedbear-ticket] [armedbear] #297: Array elements aren't checked when setting specialized integer arrays
armedbear
armedbear-devel at common-lisp.net
Mon Jan 21 08:06:38 UTC 2013
#297: Array elements aren't checked when setting specialized integer arrays
-----------------------+----------------------------------------------------
Reporter: sboukarev | Owner: mevenson
Type: defect | Status: new
Priority: minor | Milestone:
Component: streams | Version:
Keywords: |
-----------------------+----------------------------------------------------
(make-array 5 :element-type '(unsigned-byte 8) :initial-element 300)
=>
#(44 44 44 44 44)
(make-array 5 :element-type '(unsigned-byte 16) :initial-element (+ 300
(expt 2 16)))
=>
#(65836 65836 65836 65836 65836)
While
(make-array 5 :element-type 'bit :initial-element 300)
The value 300 is not of type COMMON-LISP:BIT.
--
Ticket URL: <http://trac.common-lisp.net/armedbear/ticket/297>
armedbear <http://common-lisp.net/project/armedbear>
armedbear
More information about the armedbear-ticket
mailing list