Jelajahi Sumber

fix a win32 bug

blueloveTH 2 tahun lalu
induk
melakukan
ca13bb4a0f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/repl.cpp

+ 1 - 1
src/repl.cpp

@@ -3,7 +3,7 @@
 namespace pkpy {
 namespace pkpy {
     REPL::REPL(VM* vm) : vm(vm){
     REPL::REPL(VM* vm) : vm(vm){
         vm->stdout_write("pocketpy " PK_VERSION " (" __DATE__ ", " __TIME__ ") ");
         vm->stdout_write("pocketpy " PK_VERSION " (" __DATE__ ", " __TIME__ ") ");
-        vm->stdout_write(fmt("[", sizeof(void*)*8, " bit] on ", kPlatformStrings[PK_SYS_PLATFORM], "\n"));
+        vm->stdout_write(fmt("[", (int)sizeof(void*)*8, " bit] on ", kPlatformStrings[PK_SYS_PLATFORM], "\n"));
         vm->stdout_write("https://github.com/blueloveTH/pocketpy" "\n");
         vm->stdout_write("https://github.com/blueloveTH/pocketpy" "\n");
         vm->stdout_write("Type \"exit()\" to exit." "\n");
         vm->stdout_write("Type \"exit()\" to exit." "\n");
     }
     }