Use usize for debug ids.

This commit is contained in:
Ms2ger 2015-03-28 22:37:41 +01:00
parent 40c710ab19
commit da1e3a3f11
3 changed files with 6 additions and 6 deletions

View file

@ -88,7 +88,7 @@ impl ConstructionResult {
(*self).clone() (*self).clone()
} }
pub fn debug_id(&self) -> uint { pub fn debug_id(&self) -> usize {
match self { match self {
&ConstructionResult::None => 0u, &ConstructionResult::None => 0u,
&ConstructionResult::ConstructionItem(_) => 0u, &ConstructionResult::ConstructionItem(_) => 0u,

View file

@ -991,9 +991,9 @@ impl BaseFlow {
&self.weak_ref_count &self.weak_ref_count
} }
pub fn debug_id(&self) -> uint { pub fn debug_id(&self) -> usize {
let p = self as *const _; let p = self as *const _;
p as uint p as usize
} }
/// Ensures that all display list items generated by this flow are within the flow's overflow /// Ensures that all display list items generated by this flow are within the flow's overflow

View file

@ -267,10 +267,10 @@ impl<'ln> LayoutNode<'ln> {
self.type_id(), self.has_changed(), self.is_dirty(), self.has_dirty_descendants()) self.type_id(), self.has_changed(), self.is_dirty(), self.has_dirty_descendants())
} }
pub fn flow_debug_id(self) -> uint { pub fn flow_debug_id(self) -> usize {
let layout_data_ref = self.borrow_layout_data(); let layout_data_ref = self.borrow_layout_data();
match *layout_data_ref { match *layout_data_ref {
None => 0u, None => 0,
Some(ref layout_data) => layout_data.data.flow_construction_result.debug_id() Some(ref layout_data) => layout_data.data.flow_construction_result.debug_id()
} }
} }
@ -806,7 +806,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> {
self.node.debug_id() self.node.debug_id()
} }
pub fn flow_debug_id(self) -> uint { pub fn flow_debug_id(self) -> usize {
self.node.flow_debug_id() self.node.flow_debug_id()
} }