We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c5c852 commit a2d5466Copy full SHA for a2d5466
src/rutabaga_gfx/src/rutabaga_gralloc/formats.rs
@@ -109,7 +109,7 @@ impl DrmFormat {
109
/// Constructs a format identifer using a fourcc byte sequence.
110
#[inline(always)]
111
pub fn new(a: u8, b: u8, c: u8, d: u8) -> DrmFormat {
112
- DrmFormat(a as u32 | (b as u32) << 8 | (c as u32) << 16 | (d as u32) << 24)
+ DrmFormat((a as u32) | ((b as u32) << 8) | ((c as u32) << 16) | ((d as u32) << 24))
113
}
114
115
/// Returns the fourcc code as a sequence of bytes.
0 commit comments