mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
some fix
This commit is contained in:
parent
049a5fadee
commit
a91400429b
@ -48,8 +48,8 @@
|
||||
|
||||
/*************** internal settings ***************/
|
||||
|
||||
// This is the maximum size of the value stack in void* units
|
||||
// The actual size in bytes equals `sizeof(void*) * PK_VM_STACK_SIZE`
|
||||
// This is the maximum size of the value stack in PyVar units
|
||||
// The actual size in bytes equals `sizeof(PyVar) * PK_VM_STACK_SIZE`
|
||||
#define PK_VM_STACK_SIZE 32768
|
||||
|
||||
// This is the maximum number of local variables in a function
|
||||
|
@ -6,7 +6,7 @@ Tuple::Tuple(int n){
|
||||
if(n <= INLINED_SIZE){
|
||||
this->_args = _inlined;
|
||||
}else{
|
||||
this->_args = (PyVar*)pool128_alloc(n * sizeof(void*));
|
||||
this->_args = (PyVar*)pool128_alloc(n * sizeof(PyVar));
|
||||
}
|
||||
this->_size = n;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user