mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-07 10:40:16 +00:00
some fix
This commit is contained in:
parent
049a5fadee
commit
a91400429b
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user