mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
some fix
This commit is contained in:
parent
a59592b799
commit
197d8414bb
@ -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)
|
||||
|
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user