Selaa lähdekoodia

change some parameters

blueloveTH 2 vuotta sitten
vanhempi
commit
443c87f507
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      include/pocketpy/codeobject.h
  2. 1 1
      include/pocketpy/expr.h

+ 1 - 1
include/pocketpy/codeobject.h

@@ -71,7 +71,7 @@ struct CodeObject {
     std::vector<int> iblocks;       // block index for each bytecode
     std::vector<LineInfo> lines;
     
-    small_vector<PyObject*, 6> consts;
+    small_vector<PyObject*, 8> consts;
     small_vector<StrName, 16> varnames;      // local variables
     NameDictInt varnames_inv;
     small_vector<CodeBlock, 4> blocks;

+ 1 - 1
include/pocketpy/expr.h

@@ -51,7 +51,7 @@ public:
 };
 
 typedef unique_ptr_128<Expr> Expr_;
-typedef small_vector<Expr_, 6> Expr_vector;
+typedef small_vector<Expr_, 4> Expr_vector;
 
 template<>
 struct TriviallyRelocatable<Expr_>{