From 7b88d53b617ffff3d8ee4e36838e04a7838a56c7 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 27 Nov 2022 14:44:34 +1100 Subject: util/path.h: Fixed narrowing warning from older versions of clang. --- src/lib/util/path.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/util/path.h') diff --git a/src/lib/util/path.h b/src/lib/util/path.h index b0af408973d..83785d0999f 100644 --- a/src/lib/util/path.h +++ b/src/lib/util/path.h @@ -54,7 +54,7 @@ inline std::string &path_append(std::string &path, T &&next, U &&... more) if (!path.empty() && !is_directory_separator(path.back())) path.append(PATH_SEPARATOR); path.append(std::forward(next)); - if constexpr (sizeof...(U)) + if constexpr (sizeof...(U) > 0U) return path_append(path, std::forward(more)...); else return path; @@ -72,7 +72,7 @@ template inline std::string path_concat(T &&first, U &&... more) { std::string result(std::forward(first)); - if constexpr (sizeof...(U)) + if constexpr (sizeof...(U) > 0U) path_append(result, std::forward(more)...); return result; } -- cgit v1.2.3-70-g09d2