mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Use isize with children_count members.
I'm not size why these are signed.
This commit is contained in:
parent
67b3a3d3d6
commit
2cc3c1d9c2
1 changed files with 4 additions and 2 deletions
|
@ -109,7 +109,8 @@ pub trait ParallelPreorderDomTraversal : PreorderDomTraversal {
|
|||
{
|
||||
let mut layout_data_ref = node.mutate_layout_data();
|
||||
let layout_data = layout_data_ref.as_mut().expect("no layout data");
|
||||
layout_data.data.parallel.children_count.store(child_count as int, Ordering::Relaxed);
|
||||
layout_data.data.parallel.children_count.store(child_count as isize,
|
||||
Ordering::Relaxed);
|
||||
}
|
||||
|
||||
// Possibly enqueue the children.
|
||||
|
@ -231,7 +232,8 @@ trait ParallelPostorderFlowTraversal : PostorderFlowTraversal {
|
|||
let base = flow::mut_base(&mut **flow);
|
||||
|
||||
// Reset the count of children for the next layout traversal.
|
||||
base.parallel.children_count.store(base.children.len() as int, Ordering::Relaxed);
|
||||
base.parallel.children_count.store(base.children.len() as isize,
|
||||
Ordering::Relaxed);
|
||||
|
||||
// Possibly enqueue the parent.
|
||||
let unsafe_parent = base.parallel.parent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue