소스 검색

change some parameters

blueloveTH 2 년 전
부모
커밋
443c87f507
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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<int> iblocks;       // block index for each bytecode
     std::vector<LineInfo> lines;
     std::vector<LineInfo> lines;
     
     
-    small_vector<PyObject*, 6> consts;
+    small_vector<PyObject*, 8> consts;
     small_vector<StrName, 16> varnames;      // local variables
     small_vector<StrName, 16> varnames;      // local variables
     NameDictInt varnames_inv;
     NameDictInt varnames_inv;
     small_vector<CodeBlock, 4> blocks;
     small_vector<CodeBlock, 4> blocks;

+ 1 - 1
include/pocketpy/expr.h

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