diff options
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r-- | components/layout/layout_debug.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs index 21e2e59324c..5f3051a9610 100644 --- a/components/layout/layout_debug.rs +++ b/components/layout/layout_debug.rs @@ -92,8 +92,8 @@ impl Drop for Scope { /// Generate a unique ID. This is used for items such as Fragment /// which are often reallocated but represent essentially the /// same data. -pub fn generate_unique_debug_id() -> uint { - unsafe { DEBUG_ID_COUNTER.fetch_add(1, SeqCst) } +pub fn generate_unique_debug_id() -> u16 { + unsafe { DEBUG_ID_COUNTER.fetch_add(1, SeqCst) as u16 } } /// Begin a layout debug trace. If this has not been called, |