This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=e2c1b1e59f35107cf2dc6413d446a0b3b2c73e67

commit e2c1b1e59f35107cf2dc6413d446a0b3b2c73e67
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Feb 23 20:16:19 2023 +0100

    libdpkg: Switch bitmasks enumerations into precise masks
    
    Do not over mask, and use the precise bits we are trying to mask.
    
    Warned-by: clang-16 -Wassign-enum
---
 lib/dpkg/dpkg-db.h  | 2 +-
 lib/dpkg/pkg-spec.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/dpkg/dpkg-db.h b/lib/dpkg/dpkg-db.h
index 106edd29d..11048e4c6 100644
--- a/lib/dpkg/dpkg-db.h
+++ b/lib/dpkg/dpkg-db.h
@@ -274,7 +274,7 @@ enum modstatdb_rw {
   /* Now some optional flags (starting at bit 8): */
   msdbrw_available_readonly    = DPKG_BIT(8),
   msdbrw_available_write       = DPKG_BIT(9),
-  msdbrw_available_mask                = 0xff00,
+  msdbrw_available_mask                = 0x0300,
 };
 
 void modstatdb_init(void);
diff --git a/lib/dpkg/pkg-spec.h b/lib/dpkg/pkg-spec.h
index 964f0d982..af05d9d1c 100644
--- a/lib/dpkg/pkg-spec.h
+++ b/lib/dpkg/pkg-spec.h
@@ -45,7 +45,7 @@ enum pkg_spec_flags {
        /* How to consider the lack of an arch qualifier. */
        PKG_SPEC_ARCH_SINGLE    = DPKG_BIT(8),
        PKG_SPEC_ARCH_WILDCARD  = DPKG_BIT(9),
-       PKG_SPEC_ARCH_MASK      = 0xff00,
+       PKG_SPEC_ARCH_MASK      = 0x0300,
 };
 
 struct pkg_spec {

-- 
Dpkg.Org's dpkg

Reply via email to