blueloveTH 1 vuosi sitten
vanhempi
commit
a91400429b
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      include/pocketpy/config.h
  2. 1 1
      src/tuplelist.cpp

+ 2 - 2
include/pocketpy/config.h

@@ -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

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