diff --git a/components/fonts/platform/macos/font.rs b/components/fonts/platform/macos/font.rs index e304fc80c22..7fe64473607 100644 --- a/components/fonts/platform/macos/font.rs +++ b/components/fonts/platform/macos/font.rs @@ -141,7 +141,7 @@ impl CachedKernTable { fn binary_search(&self, first_glyph: GlyphId, second_glyph: GlyphId) -> Option { let pairs = &self.font_table.buffer()[self.pair_data_range.clone()]; - let query = first_glyph << 16 | second_glyph; + let query = (first_glyph << 16) | second_glyph; let (mut start, mut end) = (0, pairs.len() / KERN_PAIR_LEN); while start < end { let i = (start + end) / 2; diff --git a/components/layout/display_list/webrender_helpers.rs b/components/layout/display_list/webrender_helpers.rs index ff13b1f9d53..edfb3265329 100644 --- a/components/layout/display_list/webrender_helpers.rs +++ b/components/layout/display_list/webrender_helpers.rs @@ -190,7 +190,7 @@ impl DisplayItem { builder: &DisplayListBuilder, node_index: usize, ) -> SpatialTreeItemKey { - let pipeline_tag = (builder.pipeline_id.0 as u64) << 32 | builder.pipeline_id.1 as u64; + let pipeline_tag = ((builder.pipeline_id.0 as u64) << 32) | builder.pipeline_id.1 as u64; SpatialTreeItemKey::new(pipeline_tag, node_index as u64) }