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){