summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-01-22 07:40:44 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2025-01-22 08:13:31 +0100
commit1ba8bdee9a2b2ca22527551fd8840d135d633ac9 (patch)
treef3d3e853f26a1ca7f9d37eb91835efe45502c1f7
parentcece89f812b9dfdb0783746d9deddde8961d57ee (diff)
Fix unreg() return type conversion
-rw-r--r--src/rebuild.cc4
1 files changed, 2 insertions, 2 deletions
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<int>(found);
+ return found;
}
std::array<ExternalConfigurationEntry, 1024> externalConfigFiles;