stylo: We've had bitfield accessors for a while now.

This commit is contained in:
Emilio Cobos Álvarez 2017-08-08 17:33:51 +02:00
parent 32f835260c
commit efed0ac742
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -156,11 +156,8 @@ impl WeakAtom {
/// Returns the length of the atom string. /// Returns the length of the atom string.
#[inline] #[inline]
pub fn len(&self) -> u32 { pub fn len(&self) -> u32 {
// FIXME(emilio): re-introduce bitfield accessors:
//
// https://github.com/servo/rust-bindgen/issues/519
unsafe { unsafe {
(*self.as_ptr())._bitfield_1 & 0x7FFFFFFF (*self.as_ptr()).mLength()
} }
} }