From ed78f77ec9b3bb98f05aa43d16545846850774e2 Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Sun, 11 May 2025 15:59:02 +0300 Subject: apt-pkg: fixed type comparison in 64bit systems using memsize cast --- apt-pkg/versionmatch.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-pkg/versionmatch.cc') diff --git a/apt-pkg/versionmatch.cc b/apt-pkg/versionmatch.cc index 3af51e40c..4a8aafd7d 100644 --- a/apt-pkg/versionmatch.cc +++ b/apt-pkg/versionmatch.cc @@ -143,8 +143,8 @@ bool pkgVersionMatch::MatchVer(const char *A,string B,bool Prefix) const char *Ae = Ab + strlen(A); // Strings are not a compatible size. - if (((unsigned)(Ae - Ab) != B.length() && Prefix == false) || - (unsigned)(Ae - Ab) < B.length()) + if (((size_t)(Ae - Ab) != B.length() && Prefix == false) || + (size_t)(Ae - Ab) < B.length()) return false; // Match (leading?) -- cgit v1.2.3-70-g09d2