diff --git a/gix-index/src/entry/flags.rs b/gix-index/src/entry/flags.rs index dacd311b3ed..1a770350df9 100644 --- a/gix-index/src/entry/flags.rs +++ b/gix-index/src/entry/flags.rs @@ -12,7 +12,7 @@ bitflags! { /// The mask to obtain the length of the path associated with this entry, up to 4095 characters without extension. const PATH_LEN = 0x0fff; /// The mask to apply to obtain the stage number of an entry, encoding three value: 0 = base, 1 = ours, 2 = theirs. - const STAGE_MASK = 1<<12 | 1<<13; + const STAGE_MASK = (1<<12) | (1<<13); /// If set, additional bits need to be written to storage. const EXTENDED = 1<<14; /// If set, the entry be assumed to match with the version on the working tree, as a way to avoid `lstat()` checks. diff --git a/gix-odb/src/store_impls/dynamic/types.rs b/gix-odb/src/store_impls/dynamic/types.rs index ef135ad6500..bfe093d7291 100644 --- a/gix-odb/src/store_impls/dynamic/types.rs +++ b/gix-odb/src/store_impls/dynamic/types.rs @@ -61,7 +61,7 @@ impl PackId { midx <= Self::max_packs_in_multi_index(), "There shouldn't be more than 2^16 packs per multi-index" ); - ((self.index as gix_pack::data::Id | 1 << 15) | midx << 16) as gix_pack::data::Id + (self.index as gix_pack::data::Id | 1 << 15) | (midx << 16) as gix_pack::data::Id } } }