Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/auriamg/macdylibbundler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSCG82 <scg082+github@gmail.com>2021-03-19 17:52:24 +0300
committerSCG82 <scg082+github@gmail.com>2021-03-19 17:52:24 +0300
commitdc771d82d49a56b467f135913359b0c2dcd867ab (patch)
treef6f3fd65030a2f7496d29db74eced1901bd7211e
parentd89023bfe7947c405ae5e5d031a06b376671243b (diff)
Revert to traditional for loop in collectSubDependencies
-rw-r--r--src/DylibBundler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DylibBundler.cpp b/src/DylibBundler.cpp
index cda5a81..e83f06c 100644
--- a/src/DylibBundler.cpp
+++ b/src/DylibBundler.cpp
@@ -312,16 +312,16 @@ void collectDependencies(const std::string& filename)
void collectSubDependencies()
{
// print status to user
- int dep_amount = deps.size();
+ size_t dep_amount = deps.size();
// recursively collect each dependencie's dependencies
while(true)
{
dep_amount = deps.size();
- for (const auto& dep : deps)
+ for (size_t n=0; n<dep_amount; n++)
{
std::cout << "."; fflush(stdout);
- std::string original_path = dep.getOriginalPath();
+ std::string original_path = deps[n].getOriginalPath();
if (isRpath(original_path)) original_path = searchFilenameInRpaths(original_path);
collectDependencies(original_path);