xo-object2: streamline DInteger alloc. make() -> box()

This commit is contained in:
Roland Conybeare 2026-01-09 17:54:42 -05:00
commit 59ce547db3
3 changed files with 15 additions and 7 deletions

View file

@ -112,9 +112,7 @@ namespace ut {
c_o.add_gc_root(&l0_o);
for(int ip1 = tc.list_.size(); ip1 > 0; --ip1) {
// auto xi_o = Integer::make(g_o, ...);
DInteger * xi = DInteger::make(gc_o, tc.list_[ip1 - 1]);
auto xi_o = with_facet<AGCObject>::mkobj(xi);
auto xi_o = DInteger::box<AGCObject>(gc_o, tc.list_[ip1 - 1]);
l0_o = DList::cons(gc_o, xi_o, l0_o);
}