[armedbear-ticket] [armedbear] #182: ADJUST-ARRAY failure

armedbear armedbear-devel at common-lisp.net
Sun Nov 6 20:38:48 UTC 2011


#182: ADJUST-ARRAY failure
--------------------------------------------+-------------------------------
 Reporter:  mevenson                        |       Owner:  somebody   
     Type:  defect                          |      Status:  new        
 Priority:  major                           |   Milestone:  unscheduled
Component:  other                           |     Version:  1.0        
 Keywords:  adjust-array, ansi conformance  |  
--------------------------------------------+-------------------------------

Comment(by ehuelsmann):

 The solution to the problem is in BasicVector_UnsignedByte8.java:290-292,
 which should be:

 {{{
         byte[] newElements = new byte[newCapacity];
         System.arraycopy(elements, 0, newElements, 0,
                          Math.min(capacity, newCapacity));
 }}}

 Note that this change alone doesn't compile, because it breaks line 295.

-- 
Ticket URL: <http://trac.common-lisp.net/armedbear/ticket/182#comment:1>
armedbear <http://common-lisp.net/project/armedbear>
armedbear


More information about the armedbear-ticket mailing list