summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-01-28 22:38:24 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-03 12:54:42 +0100
commit2746cd503accc4d995a9c11f294dbbc560997292 (patch)
tree67f2a012bbd8f2c365750a8362ab5a980183609f /apt-pkg
parent7d916e09d3c03127259e7bad7b99bbf4c090b511 (diff)
patterns: Make offset a size_t instead of off_t
This allows comparing against sentence.size()
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/cachefilter-patterns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/cachefilter-patterns.h b/apt-pkg/cachefilter-patterns.h
index bd8ce7e7e..33595dde2 100644
--- a/apt-pkg/cachefilter-patterns.h
+++ b/apt-pkg/cachefilter-patterns.h
@@ -71,7 +71,7 @@ struct PatternTreeParser
struct State
{
- off_t offset = 0;
+ size_t offset = 0;
};
APT::StringView sentence;