Browse Source

Shell: Use correct printf format string for `size_t`

Daniel Bertalan 4 năm trước cách đây
mục cha
commit
e32692ea68
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Userland/Shell/Builtin.cpp

+ 1 - 1
Userland/Shell/Builtin.cpp

@@ -268,7 +268,7 @@ int Shell::builtin_cdh(int argc, const char** argv)
         }
 
         for (ssize_t i = cd_history.size() - 1; i >= 0; --i)
-            printf("%lu: %s\n", cd_history.size() - i, cd_history.at(i).characters());
+            printf("%zu: %s\n", cd_history.size() - i, cd_history.at(i).characters());
         return 0;
     }