From 1ba8bdee9a2b2ca22527551fd8840d135d633ac9 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 22 Jan 2025 07:40:44 +0100 Subject: Fix unreg() return type conversion --- src/rebuild.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rebuild.cc') diff --git a/src/rebuild.cc b/src/rebuild.cc index 4ca1809..52245fe 100644 --- a/src/rebuild.cc +++ b/src/rebuild.cc @@ -71,7 +71,7 @@ int reg(const char* location) int unreg(const char* location) { - std::size_t found{0}; + int found{0}; for(std::size_t i = 0; i < numConfigFiles;) { if(std::string(location) == configFiles[i].file) @@ -106,7 +106,7 @@ int unreg(const char* location) } } - return static_cast(found); + return found; } std::array externalConfigFiles; -- cgit v1.2.3