aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/reporter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_layout_interface/reporter.rs')
-rw-r--r--components/script_layout_interface/reporter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_layout_interface/reporter.rs b/components/script_layout_interface/reporter.rs
index 432b6a0b037..ec3dfae91a9 100644
--- a/components/script_layout_interface/reporter.rs
+++ b/components/script_layout_interface/reporter.rs
@@ -29,7 +29,7 @@ impl ParseErrorReporter for CSSErrorReporter {
url: &ServoUrl,
line_number_offset: u64) {
let location = input.source_location(position);
- let line_offset = location.line + line_number_offset as usize;
+ let line_offset = location.line + line_number_offset as u32;
if log_enabled!(log::LogLevel::Info) {
info!("Url:\t{}\n{}:{} {}",
url.as_str(),