xo-object: streamline DFloat construction, like w/ DList/DInteger
This commit is contained in:
parent
fc1108a9b1
commit
53affe2fd1
3 changed files with 14 additions and 6 deletions
|
|
@ -167,8 +167,7 @@ namespace ut {
|
|||
ok = c_o.is_type_installed(typeseq::id<DList>());
|
||||
REQUIRE(ok);
|
||||
|
||||
DFloat * x0 = DFloat::make(gc_o, 3.1415927);
|
||||
auto x0_o = with_facet<AGCObject>::mkobj(x0);
|
||||
auto x0_o = DFloat::box<AGCObject>(gc_o, 3.1415927);
|
||||
c_o.add_gc_root(&x0_o);
|
||||
REQUIRE(to_0->allocated() == sizeof(AllocHeader) + sizeof(DFloat));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue