Browse Source

For ReMap to work, S has to be marked volatile :/.

Jay Freeman (saurik) 7 years ago
parent
commit
c7db7b2f87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apt-pkg/cacheiterators.h

+ 1 - 1
apt-pkg/cacheiterators.h

@@ -57,7 +57,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: