diff --git a/crates/bevy_text/src/font_atlas_set.rs b/crates/bevy_text/src/font_atlas_set.rs index 6231351525d37..69d7003f7e392 100644 --- a/crates/bevy_text/src/font_atlas_set.rs +++ b/crates/bevy_text/src/font_atlas_set.rs @@ -81,7 +81,7 @@ impl FontAtlasSet { .size .height .max(glyph_texture.texture_descriptor.size.width); - let containing = (1u32 << 32 - glyph_max_size.leading_zeros()).max(512) as f32; + let containing = (1u32 << (32 - glyph_max_size.leading_zeros())).max(512) as f32; font_atlases.push(FontAtlas::new( textures, texture_atlases,