diff options
| author | Julian Andres Klode <jak@debian.org> | 2025-05-19 15:20:00 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-05-19 15:20:00 +0000 |
| commit | 2ddc16b9f8edff1329f5ac3e46b0c0cf9bde661d (patch) | |
| tree | eaa14b7fc669200b325255b8d855eed8c84969ae /apt-pkg/versionmatch.cc | |
| parent | b4e745bfed0c06b1b7faeceeab32a02a76fb8a54 (diff) | |
| parent | ed78f77ec9b3bb98f05aa43d16545846850774e2 (diff) | |
Merge branch 'main' into 'main'
apt-pkg: fixed type comparison in 64bit systems using memsize cast
See merge request apt-team/apt!477
Diffstat (limited to 'apt-pkg/versionmatch.cc')
| -rw-r--r-- | apt-pkg/versionmatch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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?) |
