From bd364d99675a4d7431fab6f341670f4645643f2b Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 1 Jun 2024 21:52:36 +0800 Subject: [PATCH] Update tuplelist.cpp --- src/tuplelist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuplelist.cpp b/src/tuplelist.cpp index 8c21091a..2f8b6c4f 100644 --- a/src/tuplelist.cpp +++ b/src/tuplelist.cpp @@ -6,7 +6,7 @@ Tuple::Tuple(int n){ if(n <= INLINED_SIZE){ this->_args = _inlined; }else{ - this->_args = (PyVar*)pool128_alloc(n * sizeof(PyVar)); + this->_args = (PyVar*)malloc(n * sizeof(PyVar)); } this->_size = n; } @@ -45,7 +45,7 @@ Tuple::Tuple(PyVar _0, PyVar _1, PyVar _2, PyVar _3): Tuple(4){ _args[3] = _3; } -Tuple::~Tuple(){ if(!is_inlined()) pool128_dealloc(_args); } +Tuple::~Tuple(){ if(!is_inlined()) free(_args); } List ArgsView::to_list() const{ List ret(size());