This commit is contained in:
blueloveTH 2024-05-13 14:46:28 +08:00
parent 049a5fadee
commit a91400429b
2 changed files with 3 additions and 3 deletions

View File

@ -48,8 +48,8 @@
/*************** internal settings ***************/ /*************** internal settings ***************/
// This is the maximum size of the value stack in void* units // This is the maximum size of the value stack in PyVar units
// The actual size in bytes equals `sizeof(void*) * PK_VM_STACK_SIZE` // The actual size in bytes equals `sizeof(PyVar) * PK_VM_STACK_SIZE`
#define PK_VM_STACK_SIZE 32768 #define PK_VM_STACK_SIZE 32768
// This is the maximum number of local variables in a function // This is the maximum number of local variables in a function

View File

@ -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(void*)); this->_args = (PyVar*)pool128_alloc(n * sizeof(PyVar));
} }
this->_size = n; this->_size = n;
} }