mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update pocketpy.h
This commit is contained in:
parent
498d2d2777
commit
a34b827798
@ -418,7 +418,7 @@ void __runCodeBuiltins(VM* vm, const char* src){
|
||||
void __addModuleTime(VM* vm){
|
||||
PyVar mod = vm->newModule("time");
|
||||
vm->bindFunc(mod, "time", [](VM* vm, PyVarList args) {
|
||||
return vm->PyFloat((_Float)std::time(nullptr));
|
||||
return vm->PyFloat((_Int)std::time(nullptr));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user