aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/parallel.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-04-02 14:50:15 +0200
committerMs2ger <ms2ger@gmail.com>2015-04-02 14:50:15 +0200
commit2cc3c1d9c2c54a00dc4526a10cef1375e5af5280 (patch)
tree23a54108e7e4d16bef86c5c991dea18b5b0c3562 /components/layout/parallel.rs
parent67b3a3d3d661b43939b8257dbeb1dbd123cb2d2c (diff)
downloadservo-2cc3c1d9c2c54a00dc4526a10cef1375e5af5280.tar.gz
servo-2cc3c1d9c2c54a00dc4526a10cef1375e5af5280.zip
Use isize with children_count members.
I'm not size why these are signed.
Diffstat (limited to 'components/layout/parallel.rs')
-rw-r--r--components/layout/parallel.rs6
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;