mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Use usize for UnsafeLayoutNode.
This commit is contained in:
parent
674e52afa1
commit
7a2ab2784d
1 changed files with 2 additions and 2 deletions
|
@ -1135,11 +1135,11 @@ pub trait PostorderNodeMutTraversal {
|
|||
|
||||
/// Opaque type stored in type-unsafe work queues for parallel layout.
|
||||
/// Must be transmutable to and from LayoutNode/ThreadSafeLayoutNode.
|
||||
pub type UnsafeLayoutNode = (uint, uint);
|
||||
pub type UnsafeLayoutNode = (usize, usize);
|
||||
|
||||
pub fn layout_node_to_unsafe_layout_node(node: &LayoutNode) -> UnsafeLayoutNode {
|
||||
unsafe {
|
||||
let ptr: uint = mem::transmute_copy(node);
|
||||
let ptr: usize = mem::transmute_copy(node);
|
||||
(ptr, 0)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue