xo-object: streamline DFloat construction, like w/ DList/DInteger
This commit is contained in:
parent
59ce547db3
commit
ce32d59bc3
3 changed files with 14 additions and 6 deletions
|
|
@ -12,8 +12,7 @@ namespace xo {
|
|||
|
||||
namespace scm {
|
||||
DFloat *
|
||||
DFloat::make(obj<AAllocator> mm,
|
||||
double x)
|
||||
DFloat::_box(obj<AAllocator> mm, double x)
|
||||
{
|
||||
void * mem = mm.alloc(typeseq::id<DFloat>(),
|
||||
sizeof(DFloat));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue