Browse Source

Update tuplelist.cpp

blueloveTH 1 year ago
parent
commit
bd364d9967
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/tuplelist.cpp

+ 2 - 2
src/tuplelist.cpp

@@ -6,7 +6,7 @@ Tuple::Tuple(int n){
     if(n <= INLINED_SIZE){
     if(n <= INLINED_SIZE){
         this->_args = _inlined;
         this->_args = _inlined;
     }else{
     }else{
-        this->_args = (PyVar*)pool128_alloc(n * sizeof(PyVar));
+        this->_args = (PyVar*)malloc(n * sizeof(PyVar));
     }
     }
     this->_size = n;
     this->_size = n;
 }
 }
@@ -45,7 +45,7 @@ Tuple::Tuple(PyVar _0, PyVar _1, PyVar _2, PyVar _3): Tuple(4){
     _args[3] = _3;
     _args[3] = _3;
 }
 }
 
 
-Tuple::~Tuple(){ if(!is_inlined()) pool128_dealloc(_args); }
+Tuple::~Tuple(){ if(!is_inlined()) free(_args); }
 
 
 List ArgsView::to_list() const{
 List ArgsView::to_list() const{
     List ret(size());
     List ret(size());