Fixes PR102 and PR119.
authorMichael Starzinger <michi@complang.tuwien.ac.at>
Tue, 13 Jan 2009 15:30:34 +0000 (16:30 +0100)
committerMichael Starzinger <michi@complang.tuwien.ac.at>
Tue, 13 Jan 2009 15:30:34 +0000 (16:30 +0100)
commit4d49508a2e5909e23e0fa62fa5e3461e3261ae76
tree9676db71cf1f758611124b78cda80a670d90816b
parentd75c5c294648344a83d3a1df07695e1123a84f79
Fixes PR102 and PR119.
* src/vm/primitive.hpp (Primitive::unbox_typed): Added new method.
* src/vm/primitive.cpp: Implemented above method for typesafe unboxing
of primitive values with conversion.

* src/vm/array.cpp (Array::set_boxed_element): Use new unboxing function and
special handling for object arrays.

--HG--
branch : michi
src/vm/array.cpp
src/vm/primitive.cpp
src/vm/primitive.hpp