diff options
Diffstat (limited to 'components/layout/parallel.rs')
-rw-r--r-- | components/layout/parallel.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/layout/parallel.rs b/components/layout/parallel.rs index 57b74ac66e4..6699e44d487 100644 --- a/components/layout/parallel.rs +++ b/components/layout/parallel.rs @@ -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; |