fix for Vector from Dean (ticket #155)

This commit is contained in:
Peter Vlugter 2010-04-20 11:07:59 +12:00
parent ca83d0af64
commit 7f9a9c7130

View file

@ -326,7 +326,7 @@ object Vector {
@inline
private[stm] def array(elems: AnyRef*) = {
val back = new Array[AnyRef](elems.length)
Array.copy(elems, 0, back, 0, back.length)
Array.copy(elems.toArray, 0, back, 0, back.length)
back
}