summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-02-01 14:12:13 -0800
committerSam Bingner <sam@bingner.com>2020-07-17 00:22:23 -1000
commit362bf8e96acd5048e33e3687f39c700b4ddf80d8 (patch)
treed3aa2a3baacf9a2e2cbab9c0557ab54ff3a5d9c2
parente08fb4d48c1534b2b7e9d7df4a8114c0fdd3d516 (diff)
For ReMap to work, S has to be marked volatile :/.
-rw-r--r--apt-pkg/cacheiterators.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h
index 75581270b..8ed001d21 100644
--- a/apt-pkg/cacheiterators.h
+++ b/apt-pkg/cacheiterators.h
@@ -59,7 +59,7 @@ template<typename Str, typename Itr> class pkgCache::Iterator :
Str* OwnerPointer() const { return static_cast<Itr const*>(this)->OwnerPointer(); }
protected:
- Str *S;
+ Str *volatile S;
pkgCache *Owner;
public: