Skip to content

Commit

Permalink
Fix borrow_unchecked in LayoutDataRef
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwu committed May 19, 2015
1 parent c2ed42d commit 7772984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/node.rs
Expand Up @@ -245,7 +245,7 @@ impl LayoutDataRef {
#[inline]
#[allow(unsafe_code)]
pub unsafe fn borrow_unchecked(&self) -> *const Option<LayoutData> {
mem::transmute(&self.data_cell)
self.data_cell.as_unsafe_cell().get() as *const _
}

/// Borrows the layout data immutably. This function is *not* thread-safe.
Expand Down

0 comments on commit 7772984

Please sign in to comment.