Skip to content

Commit 61d8540

Browse files
committed
fix row format, roll back one constexpr
1 parent 12a311e commit 61d8540

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library/Core.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, s
903903
else if (first == "plug")
904904
{
905905
constexpr auto header_format = "%30s %10s %4s %8s\n";
906-
constexpr auto row_format = "%30s %10s %4i %8s\n";
906+
constexpr auto row_format = "%30s %10s %4zu %8s\n";
907907
con.print(header_format, "Name", "State", "Cmds", "Enabled");
908908

909909
plug_mgr->refresh();
@@ -2166,7 +2166,7 @@ static void getFilesWithPrefixAndSuffix(const std::filesystem::path& folder, con
21662166
}
21672167

21682168
size_t loadScriptFiles(Core* core, color_ostream& out, const std::span<const std::string> prefix, const std::filesystem::path& folder) {
2169-
static constexpr std::string suffix = ".init";
2169+
static const std::string suffix = ".init";
21702170
std::vector<std::filesystem::path> scriptFiles;
21712171
for ( const auto& p : prefix ) {
21722172
getFilesWithPrefixAndSuffix(folder, p, ".init", scriptFiles);

0 commit comments

Comments
 (0)