[devel] [PATCH for apt 26/38] Fix warning about truncation of value of pkgCache::Header::HeaderSz

Aleksei Nikiforov darktemplar на altlinux.org
Вт Дек 10 18:23:31 MSK 2019


Update types of other variables as well.
---
 apt/apt-pkg/pkgcache.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/apt/apt-pkg/pkgcache.h b/apt/apt-pkg/pkgcache.h
index 05a63bc..6b44522 100644
--- a/apt/apt-pkg/pkgcache.h
+++ b/apt/apt-pkg/pkgcache.h
@@ -175,13 +175,13 @@ struct pkgCache::Header
    unsigned long OptionsHash;
    
    // Size of structure values
-   unsigned short HeaderSz;
-   unsigned short PackageSz;
-   unsigned short PackageFileSz;
-   unsigned short VersionSz;
-   unsigned short DependencySz;
-   unsigned short ProvidesSz;
-   unsigned short VerFileSz;
+   unsigned long HeaderSz;
+   unsigned long PackageSz;
+   unsigned long PackageFileSz;
+   unsigned long VersionSz;
+   unsigned long DependencySz;
+   unsigned long ProvidesSz;
+   unsigned long VerFileSz;
    
    // Structure counts
    unsigned long PackageCount;
-- 
2.24.0



Подробная информация о списке рассылки Devel