Browse Source

Update pocketpy.h

blueloveTH 3 years ago
parent
commit
a34b827798
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pocketpy.h

+ 1 - 1
src/pocketpy.h

@@ -418,7 +418,7 @@ void __runCodeBuiltins(VM* vm, const char* src){
 void __addModuleTime(VM* vm){
 void __addModuleTime(VM* vm){
     PyVar mod = vm->newModule("time");
     PyVar mod = vm->newModule("time");
     vm->bindFunc(mod, "time", [](VM* vm, PyVarList args) {
     vm->bindFunc(mod, "time", [](VM* vm, PyVarList args) {
-        return vm->PyFloat((_Float)std::time(nullptr));
+        return vm->PyFloat((_Int)std::time(nullptr));
     });
     });
 }
 }