From 2746cd503accc4d995a9c11f294dbbc560997292 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 28 Jan 2020 22:38:24 +0100 Subject: patterns: Make offset a size_t instead of off_t This allows comparing against sentence.size() --- apt-pkg/cachefilter-patterns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3