diff options
author | SCG82 <scg082+github@gmail.com> | 2021-03-19 18:45:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 18:45:02 +0300 |
commit | 8b7a98beb2d2b38d8dd71cf8558856d27d627a48 (patch) | |
tree | f6f3fd65030a2f7496d29db74eced1901bd7211e | |
parent | d89023bfe7947c405ae5e5d031a06b376671243b (diff) | |
parent | dc771d82d49a56b467f135913359b0c2dcd867ab (diff) |
Merge pull request #61 from SCG82/fix-for-loop
Revert to traditional for loop in collectSubDependencies
-rw-r--r-- | src/DylibBundler.cpp | 6 |
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); |