From 197d8414bb3a98d3b200646aba15a2e6ed56c5b8 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 1 Jun 2024 18:22:50 +0800 Subject: [PATCH] some fix --- include/pocketpy/config.h | 2 +- src/io.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pocketpy/config.h b/include/pocketpy/config.h index 2da9bfd7..c126bcad 100644 --- a/include/pocketpy/config.h +++ b/include/pocketpy/config.h @@ -53,7 +53,7 @@ #define PK_VM_STACK_SIZE 16384 // This is the maximum number of local variables in a function -// (not recommended to change this / it should be less than 200) +// (not recommended to change this) #define PK_MAX_CO_VARNAMES 64 // Hash table load factor (smaller ones mean less collision but more memory) diff --git a/src/io.cpp b/src/io.cpp index a5e749e4..4d2bd9c7 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -178,7 +178,7 @@ void add_module_os(VM* vm){ } List ret; for(auto& p: di) ret.push_back(VAR(p.path().filename().string())); - return VAR(ret); + return VAR(std::move(ret)); }); vm->bind_func(mod, "remove", 1, [](VM* vm, ArgsView args){