From: Arnaud Giersch Date: Mon, 25 Mar 2019 09:44:25 +0000 (+0100) Subject: Fix condition. X-Git-Tag: v3_22~40 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b9c50661ebc2cd5243d31f8fadaac3000dcef0fc Fix condition. --- diff --git a/src/xbt/log.cpp b/src/xbt/log.cpp index dc91b535de..18da68996e 100644 --- a/src/xbt/log.cpp +++ b/src/xbt/log.cpp @@ -641,7 +641,7 @@ static void xbt_log_help_categories_rec(xbt_log_category_t category, const std:: cats.push_back(cat); std::sort(begin(cats), end(cats), - [](xbt_log_category_t a, xbt_log_category_t b) { return strcmp(a->name, b->name) == -1; }); + [](xbt_log_category_t a, xbt_log_category_t b) { return strcmp(a->name, b->name) < 0; }); for (auto const& cat : cats) { printf("%s%s: %s\n", this_prefix.c_str(), cat->name, cat->description);